<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[13981] trunk: Remove Gears from UI.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13981">13981</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-04-04 00:48:28 +0000 (Sun, 04 Apr 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove Gears from UI. see <a href="http://trac.wordpress.org/ticket/11301">#11301</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmintoolsphp">trunk/wp-admin/tools.php</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpadminjswpgearsdevjs">trunk/wp-admin/js/wp-gears.dev.js</a></li>
<li><a href="#trunkwpadminjswpgearsjs">trunk/wp-admin/js/wp-gears.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjswpgearsdevjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/wp-gears.dev.js (13980 => 13981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-gears.dev.js        2010-04-04 00:41:39 UTC (rev 13980)
+++ trunk/wp-admin/js/wp-gears.dev.js        2010-04-04 00:48:28 UTC (rev 13981)
</span><span class="lines">@@ -1,100 +0,0 @@
</span><del>-
-var wpGears = {
-
-        createStore : function() {
-                if ( 'undefined' == typeof google || ! google.gears ) return;
-
-                if ( 'undefined' == typeof localServer )
-                        localServer = google.gears.factory.create(&quot;beta.localserver&quot;);
-
-                store = localServer.createManagedStore(this.storeName());
-                store.manifestUrl = &quot;gears-manifest.php&quot;;
-                store.checkForUpdate();
-                this.message(3);
-        },
-
-        getPermission : function() {
-                var perm = true;
-
-                if ( 'undefined' != typeof google &amp;&amp; google.gears ) {
-                        if ( ! google.gears.factory.hasPermission )
-                                perm = google.gears.factory.getPermission( 'WordPress', 'images/logo.gif' );
-
-                        if ( perm )
-                                try { this.createStore(); } catch(e) { this.message(); } // silence if canceled
-                        else
-                                this.message(4);
-                }
-        },
-
-        storeName : function() {
-                var name, host = window.location.host;
-
-                if ( host.match(/[^a-z0-9._-]/i) )
-                        host = encodeURIComponent(host);
-
-                name = window.location.protocol + host;
-                name = name.replace(/[^a-z0-9._-]+/gi, '_');
-                name = 'wp_' + name.substring(0, 60); // max length of name is 64 chars
-
-                return name;
-        },
-
-        message : function(show) {
-                var t = this, msg1 = t.I('gears-msg1'), msg2 = t.I('gears-msg2'), msg3 = t.I('gears-msg3'), msg4 = t.I('gears-msg4'), num = t.I('gears-upd-number'), wait = t.I('gears-wait');
-
-                if ( ! msg1 ) return;
-
-                if ( 'undefined' != typeof google &amp;&amp; google.gears ) {
-                        if ( show &amp;&amp; show == 4 ) {
-                                msg1.style.display = msg2.style.display = msg3.style.display = 'none';
-                                msg4.style.display = 'block';
-                        } else if ( google.gears.factory.hasPermission ) {
-                                msg1.style.display = msg2.style.display = msg4.style.display = 'none';
-                                msg3.style.display = 'block';
-
-                                if ( 'undefined' == typeof store )
-                                        t.createStore();
-
-                                store.oncomplete = function(){wait.innerHTML = (' ' + wpGearsL10n.updateCompleted);};
-                                store.onerror = function(){wait.innerHTML = (' ' + wpGearsL10n.error + ' ' + store.lastErrorMessage);};
-                                store.onprogress = function(e){if(num) num.innerHTML = (' ' + e.filesComplete + ' / ' + e.filesTotal);};
-                        } else {
-                                msg1.style.display = msg3.style.display = msg4.style.display = 'none';
-                                msg2.style.display = 'block';
-                        }
-                }
-        },
-
-        I : function(id) {
-                return document.getElementById(id);
-        }
-};
-
-(function() {
-        if ( 'undefined' != typeof google &amp;&amp; google.gears ) return;
-
-        var gf = false;
-        if ( 'undefined' != typeof GearsFactory ) {
-                gf = new GearsFactory();
-        } else {
-                try {
-                        gf = new ActiveXObject('Gears.Factory');
-                        if ( factory.getBuildInfo().indexOf('ie_mobile') != -1 )
-                                gf.privateSetGlobalObject(this);
-                } catch (e) {
-                        if ( ( 'undefined' != typeof navigator.mimeTypes ) &amp;&amp; navigator.mimeTypes['application/x-googlegears'] ) {
-                                gf = document.createElement(&quot;object&quot;);
-                                gf.style.display = &quot;none&quot;;
-                                gf.width = 0;
-                                gf.height = 0;
-                                gf.type = &quot;application/x-googlegears&quot;;
-                                document.documentElement.appendChild(gf);
-                        }
-                }
-        }
-
-        if ( ! gf ) return;
-        if ( 'undefined' == typeof google ) google = {};
-        if ( ! google.gears ) google.gears = { factory : gf };
-})();
</del></span></pre></div>
<a id="trunkwpadminjswpgearsjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/wp-gears.js (13980 => 13981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-gears.js        2010-04-04 00:41:39 UTC (rev 13980)
+++ trunk/wp-admin/js/wp-gears.js        2010-04-04 00:48:28 UTC (rev 13981)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-var wpGears={createStore:function(){if(&quot;undefined&quot;==typeof google||!google.gears){return}if(&quot;undefined&quot;==typeof localServer){localServer=google.gears.factory.create(&quot;beta.localserver&quot;)}store=localServer.createManagedStore(this.storeName());store.manifestUrl=&quot;gears-manifest.php&quot;;store.checkForUpdate();this.message(3)},getPermission:function(){var a=true;if(&quot;undefined&quot;!=typeof google&amp;&amp;google.gears){if(!google.gears.factory.hasPermission){a=google.gears.factory.getPermission(&quot;WordPress&quot;,&quot;images/logo.gif&quot;)}if(a){try{this.createStore()}catch(b){this.message()}}else{this.message(4)}}},storeName:function(){var a,b=window.location.host;if(b.match(/[^a-z0-9._-]/i)){b=encodeURIComponent(b)}a=window.location.protocol+b;a=a.replace(/[^a-z0-9._-]+/gi,&quot;_&quot;);a=&quot;wp_&quot;+a.substring(0,60);return a},message:function(a){var d=this,g=d.I(&quot;gears-msg1&quot;),f=d.I(&quot;gears-msg2&quot;),e=d.I(&quot;gears-msg3&quot;),c=d.I(&quot;gears-msg4&quot;),b=d.I(&quot;gears-upd-number&quot;),h=d.I(&quot;gears-wait&quot;);if(!g){return}if(&quot;undefined&quot;!=typeof google&amp;&amp;google.gears){if(a&amp;&amp;a==4){g.style.display=f.style.display=e.style.display=&quot;none&quot;;c.style.display=&quot;block&quot;}else{if(google.gears.factory.hasPermission){g.style.display=f.style.display=c.style.display=&quot;none&quot;;e.style.display=&quot;block&quot;;if(&quot;undefined&quot;==typeof store){d.createStore()}store.oncomplete=function(){h.innerHTML=(&quot; &quot;+wpGearsL10n.updateCompleted)};store.onerror=function(){h.innerHTML=(&quot; &quot;+wpGearsL10n.error+&quot; &quot;+store.lastErrorMessage)};store.onprogress=function(i){if(b){b.innerHTML=(&quot; &quot;+i.filesComplete+&quot; / &quot;+i.filesTotal)}}}else{g.style.display=e.style.display=c.style.display=&quot;none&quot;;f.style.display=&quot;block&quot;}}}},I:function(a){return document.getElementById(a)}};(function(){if(&quot;undefined&quot;!=typeof google&amp;&amp;google.gears){return}var a=false;if(&quot;undefined&quot;!=typeof GearsFactory){a=new GearsFactory()}else{try{a=new ActiveXObject(&quot;Gears.Factory&quot;);if(factory.getBuildInfo().indexOf(&quot;ie_mobile&quot;)!=-1){a.privateSetGlobalObject(this)}}catch(b){if((&quot;undefined&quot;!=typeof navigator.mimeTypes)&amp;&amp;navigator.mimeTypes[&quot;application/x-googlegears&quot;]){a=document.createElement(&quot;object&quot;);a.style.display=&quot;none&quot;;a.width=0;a.height=0;a.type=&quot;application/x-googlegears&quot;;document.documentElement.appendChild(a)}}}if(!a){return}if(&quot;undefined&quot;==typeof google){google={}}if(!google.gears){google.gears={factory:a}}})();
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmintoolsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/tools.php (13980 => 13981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/tools.php        2010-04-04 00:41:39 UTC (rev 13980)
+++ trunk/wp-admin/tools.php        2010-04-04 00:48:28 UTC (rev 13981)
</span><span class="lines">@@ -10,7 +10,6 @@
</span><span class="cx"> require_once('admin.php');
</span><span class="cx"> 
</span><span class="cx"> $title = __('Tools');
</span><del>-wp_enqueue_script( 'wp-gears' );
</del><span class="cx"> 
</span><span class="cx"> require_once('admin-header.php');
</span><span class="cx"> 
</span><span class="lines">@@ -19,62 +18,6 @@
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><span class="cx"> &lt;h2&gt;&lt;?php echo esc_html( $title ); ?&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span><del>-&lt;?php
-if ( ! $is_opera ) {
-?&gt;
-&lt;div class=&quot;tool-box&quot;&gt;
-        &lt;div id=&quot;gears-msg1&quot;&gt;
-        &lt;h3 class=&quot;title&quot;&gt;&lt;?php _e('Turbo:'); ?&gt; &lt;?php _e('Speed up WordPress'); ?&gt;&lt;/h3&gt;
-        &lt;p&gt;&lt;?php _e('WordPress has support for Gears, which adds new features to your web browser.'); ?&gt;&lt;br /&gt;
-        &lt;a href=&quot;http://gears.google.com/&quot; target=&quot;_blank&quot; style=&quot;font-weight:normal;&quot;&gt;&lt;?php _e('More information...'); ?&gt;&lt;/a&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;?php _e('After you install and enable Gears, most of WordPress&amp;#8217; images, scripts, and CSS files will be stored locally on your computer. This speeds up page load time.'); ?&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;strong&gt;&lt;?php _e('Don&amp;#8217;t install on a public or shared computer.'); ?&gt;&lt;/strong&gt;&lt;/p&gt;
-        &lt;div class=&quot;buttons&quot;&gt;&lt;button onclick=&quot;window.location = 'http://gears.google.com/?action=install&amp;amp;return=&lt;?php echo urlencode( admin_url() ); ?&gt;';&quot; class=&quot;button&quot;&gt;&lt;?php _e('Install Now'); ?&gt;&lt;/button&gt;&lt;/div&gt;
-        &lt;/div&gt;
-
-        &lt;div id=&quot;gears-msg2&quot; style=&quot;display:none;&quot;&gt;
-        &lt;h3 class=&quot;title&quot;&gt;&lt;?php _e('Turbo:'); ?&gt; &lt;?php _e('Gears Status'); ?&gt;&lt;/h3&gt;
-        &lt;p&gt;&lt;?php _e('Gears is installed on this computer, but is not enabled for use with WordPress.'); ?&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;?php _e('To enable it click the button below.'); ?&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;strong&gt;&lt;?php _e('Note: Do not enable Gears if this is a public or shared computer!'); ?&gt;&lt;/strong&gt;&lt;/p&gt;
-        &lt;div class=&quot;buttons&quot;&gt;&lt;button class=&quot;button&quot; onclick=&quot;wpGears.getPermission();&quot;&gt;&lt;?php _e('Enable Gears'); ?&gt;&lt;/button&gt;&lt;/div&gt;
-        &lt;/div&gt;
-
-        &lt;div id=&quot;gears-msg3&quot; style=&quot;display:none;&quot;&gt;
-        &lt;h3 class=&quot;title&quot;&gt;&lt;?php _e('Turbo:'); ?&gt; &lt;?php _e('Gears Status'); ?&gt;&lt;/h3&gt;
-        &lt;p&gt;&lt;?php
-
-        if ( $is_chrome )
-                _e('Gears is installed and enabled on this computer. You can disable it from the Under the Hood tab in Chrome&amp;#8217;s Options menu.');
-        elseif ( $is_safari )
-                _e('Gears is installed and enabled on this computer. You can disable it from the Safari menu.');
-        else
-                _e('Gears is installed and enabled on this computer. You can disable it from your browser&amp;#8217;s Tools menu.');
-
-        ?&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;?php _e('If there are any errors try disabling Gears, reloading the page, and re-enabling Gears.'); ?&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;?php _e('Local storage status:'); ?&gt; &lt;span id=&quot;gears-wait&quot;&gt;&lt;span style=&quot;color:#f00;&quot;&gt;&lt;?php _e('Updating files:'); ?&gt;&lt;/span&gt; &lt;span id=&quot;gears-upd-number&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
-        &lt;/div&gt;
-
-        &lt;div id=&quot;gears-msg4&quot; style=&quot;display:none;&quot;&gt;
-        &lt;h3 class=&quot;title&quot;&gt;&lt;?php _e('Turbo:'); ?&gt; &lt;?php _e('Gears Status'); ?&gt;&lt;/h3&gt;
-        &lt;p&gt;&lt;?php _e('Your browser&amp;#8217;s settings do not permit this website to use Google Gears.'); ?&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;?php
-
-        if ( $is_chrome )
-                 _e('To allow it, change the Gears settings in your browser&amp;#8217;s Options, Under the Hood menu and reload this page.');
-        elseif ( $is_safari )
-                 _e('To allow it, change the Gears settings in the Safari menu and reload this page.');
-        else
-                _e('To allow it, change the Gears settings in your browser&amp;#8217;s Tools menu and reload this page.');
-
-        ?&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;strong&gt;&lt;?php _e('Note: Do not enable Gears if this is a public or shared computer!'); ?&gt;&lt;/strong&gt;&lt;/p&gt;
-        &lt;/div&gt;
-        &lt;script type=&quot;text/javascript&quot;&gt;wpGears.message();&lt;/script&gt;
-&lt;/div&gt;
-&lt;?php } ?&gt;
-
</del><span class="cx"> &lt;?php if ( current_user_can('edit_posts') ) : ?&gt;
</span><span class="cx"> &lt;div class=&quot;tool-box&quot;&gt;
</span><span class="cx">         &lt;h3 class=&quot;title&quot;&gt;&lt;?php _e('Press This') ?&gt;&lt;/h3&gt;
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (13980 => 13981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-04-04 00:41:39 UTC (rev 13980)
+++ trunk/wp-includes/script-loader.php        2010-04-04 00:48:28 UTC (rev 13981)
</span><span class="lines">@@ -336,13 +336,6 @@
</span><span class="cx">                         'l10n_print_after' =&gt; 'try{convertEntities(wordCountL10n);}catch(e){};'
</span><span class="cx">                 ));
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'wp-gears', &quot;/wp-admin/js/wp-gears$suffix.js&quot;, false, '20090717' );
-                $scripts-&gt;localize( 'wp-gears', 'wpGearsL10n', array(
-                        'updateCompleted' =&gt; __('Update completed.'),
-                        'error' =&gt; __('Error:'),
-                        'l10n_print_after' =&gt; 'try{convertEntities(wpGearsL10n);}catch(e){};'
-                ));
-
</del><span class="cx">                 $scripts-&gt;add( 'theme-preview', &quot;/wp-admin/js/theme-preview$suffix.js&quot;, array( 'thickbox', 'jquery' ), '20090319' );
</span><span class="cx">                 $scripts-&gt;add_data( 'theme-preview', 'group', 1 );
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>