<!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>[13590] trunk/wp-admin: UI upgrade -&gt; update, see #12517</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13590">13590</a></dd>
<dt>Author</dt> <dd>wpmuguru</dd>
<dt>Date</dt> <dd>2010-03-04 23:28:15 +0000 (Thu, 04 Mar 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>UI upgrade -&gt; update, see <a href="http://trac.wordpress.org/ticket/12517">#12517</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesmsphp">trunk/wp-admin/includes/ms.php</a></li>
<li><a href="#trunkwpadminmenuphp">trunk/wp-admin/menu.php</a></li>
<li><a href="#trunkwpadminmsupgradenetworkphp">trunk/wp-admin/ms-upgrade-network.php</a></li>
<li><a href="#trunkwpadminupdatecorephp">trunk/wp-admin/update-core.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludesmsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/ms.php (13589 => 13590)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/ms.php        2010-03-04 23:11:51 UTC (rev 13589)
+++ trunk/wp-admin/includes/ms.php        2010-03-04 23:28:15 UTC (rev 13590)
</span><span class="lines">@@ -666,7 +666,7 @@
</span><span class="cx">         if ( !is_super_admin() )
</span><span class="cx">                 return false;
</span><span class="cx">         if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version )
</span><del>-                echo &quot;&lt;div id='update-nag'&gt;&quot; . __( 'Thank you for Upgrading! Please visit the &lt;a href=&quot;ms-upgrade-network.php&quot;&gt;Upgrade Network&lt;/a&gt; page to update all your sites.' ) . &quot;&lt;/div&gt;&quot;;
</del><ins>+                echo &quot;&lt;div id='update-nag'&gt;&quot; . __( 'Thank you for Updating! Please visit the &lt;a href=&quot;ms-upgrade-network.php&quot;&gt;Update Network&lt;/a&gt; page to update all your sites.' ) . &quot;&lt;/div&gt;&quot;;
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'admin_notices', 'site_admin_notice' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminmenuphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/menu.php (13589 => 13590)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/menu.php        2010-03-04 23:11:51 UTC (rev 13589)
+++ trunk/wp-admin/menu.php        2010-03-04 23:28:15 UTC (rev 13590)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx">         $submenu[ 'ms-admin.php' ][10] = array( __('Users'), 'manage_network_users', 'ms-users.php' );
</span><span class="cx">         $submenu[ 'ms-admin.php' ][20] = array( __('Themes'), 'manage_network_themes', 'ms-themes.php' );
</span><span class="cx">         $submenu[ 'ms-admin.php' ][25] = array( __('Options'), 'manage_network_options', 'ms-options.php' );
</span><del>-        $submenu[ 'ms-admin.php' ][30] = array( __('Upgrade'), 'manage_network', 'ms-upgrade-network.php' );
</del><ins>+        $submenu[ 'ms-admin.php' ][30] = array( __('Update'), 'manage_network', 'ms-upgrade-network.php' );
</ins><span class="cx"> 
</span><span class="cx">         $menu[1] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminmsupgradenetworkphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-upgrade-network.php (13589 => 13590)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-upgrade-network.php        2010-03-04 23:11:51 UTC (rev 13589)
+++ trunk/wp-admin/ms-upgrade-network.php        2010-03-04 23:28:15 UTC (rev 13590)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx"> 
</span><span class="cx"> require_once( ABSPATH . WPINC . '/http.php' );
</span><span class="cx"> 
</span><del>-$title = __('Upgrade Network');
</del><ins>+$title = __('Update Network');
</ins><span class="cx"> $parent_file = 'ms-admin.php';
</span><span class="cx"> require_once('admin-header.php');
</span><span class="cx"> 
</span><span class="lines">@@ -15,7 +15,7 @@
</span><span class="cx"> 
</span><span class="cx"> echo '&lt;div class=&quot;wrap&quot;&gt;';
</span><span class="cx"> screen_icon();
</span><del>-echo '&lt;h2&gt;'.__('Upgrade Network').'&lt;/h2&gt;';
</del><ins>+echo '&lt;h2&gt;'.__('Update Network').'&lt;/h2&gt;';
</ins><span class="cx"> 
</span><span class="cx"> $action = isset($_GET['action']) ? $_GET['action'] : 'show';
</span><span class="cx"> 
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx">                                         echo &quot;&lt;li&gt;$siteurl&lt;/li&gt;&quot;;
</span><span class="cx">                                         $response = wp_remote_get( trailingslashit( $siteurl ) . &quot;wp-admin/upgrade.php?step=1&quot;, array( 'timeout' =&gt; 120, 'httpversion' =&gt; '1.1' ) );
</span><span class="cx">                                         if ( is_wp_error( $response ) )
</span><del>-                                                wp_die( &quot;&lt;strong&gt;Warning!&lt;/strong&gt; Problem upgrading {$siteurl}. Your server may not be able to connect to blogs running on it.&lt;br /&gt; Error message: &lt;em&gt;&quot; . $response-&gt;get_error_message() .&quot;&lt;/em&gt;&quot; );
</del><ins>+                                                wp_die( &quot;&lt;strong&gt;Warning!&lt;/strong&gt; Problem updating {$siteurl}. Your server may not be able to connect to sites running on it.&lt;br /&gt; Error message: &lt;em&gt;&quot; . $response-&gt;get_error_message() .&quot;&lt;/em&gt;&quot; );
</ins><span class="cx">                                         do_action( 'after_mu_upgrade', $response );
</span><span class="cx">                                         do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] );
</span><span class="cx">                                 }
</span><span class="lines">@@ -58,8 +58,8 @@
</span><span class="cx">         break;
</span><span class="cx">         case 'show':
</span><span class="cx">         default:
</span><del>-                ?&gt;&lt;p&gt;&lt;?php _e(&quot;You can upgrade all the sites on your network through this page. It works by calling the upgrade script of each site automatically. Hit the link below to upgrade.&quot;); ?&gt;&lt;/p&gt;
-                &lt;p&gt;&lt;a class=&quot;button&quot; href=&quot;ms-upgrade-network.php?action=upgrade&quot;&gt;&lt;?php _e(&quot;Upgrade Network&quot;); ?&gt;&lt;/a&gt;&lt;/p&gt;&lt;?php
</del><ins>+                ?&gt;&lt;p&gt;&lt;?php _e(&quot;You can update all the sites on your network through this page. It works by calling the update script of each site automatically. Hit the link below to update.&quot;); ?&gt;&lt;/p&gt;
+                &lt;p&gt;&lt;a class=&quot;button&quot; href=&quot;ms-upgrade-network.php?action=upgrade&quot;&gt;&lt;?php _e(&quot;Update Network&quot;); ?&gt;&lt;/a&gt;&lt;/p&gt;&lt;?php
</ins><span class="cx">                 do_action( 'wpmu_upgrade_page' );
</span><span class="cx">         break;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadminupdatecorephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/update-core.php (13589 => 13590)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/update-core.php        2010-03-04 23:11:51 UTC (rev 13589)
+++ trunk/wp-admin/update-core.php        2010-03-04 23:28:15 UTC (rev 13590)
</span><span class="lines">@@ -19,30 +19,30 @@
</span><span class="cx">         $current = false;
</span><span class="cx">         if ( !isset($update-&gt;response) || 'latest' == $update-&gt;response )
</span><span class="cx">                 $current = true;
</span><del>-        $submit = __('Upgrade Automatically');
</del><ins>+        $submit = __('Update Automatically');
</ins><span class="cx">         $form_action = 'update-core.php?action=do-core-upgrade';
</span><span class="cx">         $php_version    = phpversion();
</span><span class="cx">         $mysql_version  = $wpdb-&gt;db_version();
</span><span class="cx">         $show_buttons = true;
</span><span class="cx">         if ( 'development' == $update-&gt;response ) {
</span><del>-                $message = __('You are using a development version of WordPress.  You can upgrade to the latest nightly build automatically or download the nightly build and install it manually:');
</del><ins>+                $message = __('You are using a development version of WordPress.  You can update to the latest nightly build automatically or download the nightly build and install it manually:');
</ins><span class="cx">                 $download = __('Download nightly build');
</span><span class="cx">         } else {
</span><span class="cx">                 if ( $current ) {
</span><del>-                        $message = sprintf(__('You have the latest version of WordPress. You do not need to upgrade. However, if you want to re-install version %s, you can do so automatically or download the package and re-install manually:'), $version_string);
</del><ins>+                        $message = sprintf(__('You have the latest version of WordPress. You do not need to update. However, if you want to re-install version %s, you can do so automatically or download the package and re-install manually:'), $version_string);
</ins><span class="cx">                         $submit = __('Re-install Automatically');
</span><span class="cx">                         $form_action = 'update-core.php?action=do-core-reinstall';
</span><span class="cx">                 } else {
</span><span class="cx">                         $php_compat     = version_compare( $php_version, $update-&gt;php_version, '&gt;=' );
</span><span class="cx">                         $mysql_compat   = version_compare( $mysql_version, $update-&gt;mysql_version, '&gt;=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
</span><span class="cx">                         if ( !$mysql_compat &amp;&amp; !$php_compat )
</span><del>-                                $message = sprintf( __('You cannot upgrade because &lt;a href=&quot;http://codex.wordpress.org/Version_%1$s&quot;&gt;WordPress %1$s&lt;/a&gt; requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update-&gt;current, $update-&gt;php_version, $update-&gt;mysql_version, $php_version, $mysql_version );
</del><ins>+                                $message = sprintf( __('You cannot update because &lt;a href=&quot;http://codex.wordpress.org/Version_%1$s&quot;&gt;WordPress %1$s&lt;/a&gt; requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update-&gt;current, $update-&gt;php_version, $update-&gt;mysql_version, $php_version, $mysql_version );
</ins><span class="cx">                         elseif ( !$php_compat )
</span><del>-                                $message = sprintf( __('You cannot upgrade because &lt;a href=&quot;http://codex.wordpress.org/Version_%1$s&quot;&gt;WordPress %1$s&lt;/a&gt; requires PHP version %2$s or higher. You are running version %3$s.'), $update-&gt;current, $update-&gt;php_version, $php_version );
</del><ins>+                                $message = sprintf( __('You cannot update because &lt;a href=&quot;http://codex.wordpress.org/Version_%1$s&quot;&gt;WordPress %1$s&lt;/a&gt; requires PHP version %2$s or higher. You are running version %3$s.'), $update-&gt;current, $update-&gt;php_version, $php_version );
</ins><span class="cx">                         elseif ( !$mysql_compat )
</span><del>-                                $message = sprintf( __('You cannot upgrade because &lt;a href=&quot;http://codex.wordpress.org/Version_%1$s&quot;&gt;WordPress %1$s&lt;/a&gt; requires MySQL version %2$s or higher. You are running version %3$s.'), $update-&gt;current, $update-&gt;mysql_version, $mysql_version );
</del><ins>+                                $message = sprintf( __('You cannot update because &lt;a href=&quot;http://codex.wordpress.org/Version_%1$s&quot;&gt;WordPress %1$s&lt;/a&gt; requires MySQL version %2$s or higher. You are running version %3$s.'), $update-&gt;current, $update-&gt;mysql_version, $mysql_version );
</ins><span class="cx">                         else
</span><del>-                                $message =         sprintf(__('You can upgrade to &lt;a href=&quot;http://codex.wordpress.org/Version_%1$s&quot;&gt;WordPress %1$s&lt;/a&gt; automatically or download the package and install it manually:'), $version_string);
</del><ins>+                                $message =         sprintf(__('You can update to &lt;a href=&quot;http://codex.wordpress.org/Version_%1$s&quot;&gt;WordPress %1$s&lt;/a&gt; automatically or download the package and install it manually:'), $version_string);
</ins><span class="cx">                         if ( !$mysql_compat || !$php_compat )
</span><span class="cx">                                 $show_buttons = false;
</span><span class="cx">                 }
</span><span class="lines">@@ -127,15 +127,15 @@
</span><span class="cx"> 
</span><span class="cx">         if ( !isset($updates[0]-&gt;response) || 'latest' == $updates[0]-&gt;response ) {
</span><span class="cx">                 echo '&lt;h3&gt;';
</span><del>-                _e('You have the latest version of WordPress. You do not need to upgrade');
</del><ins>+                _e('You have the latest version of WordPress. You do not need to update');
</ins><span class="cx">                 echo '&lt;/h3&gt;';
</span><span class="cx">         } else {
</span><span class="cx">                 echo '&lt;div class=&quot;updated&quot;&gt;&lt;p&gt;';
</span><del>-                _e('&lt;strong&gt;Important:&lt;/strong&gt; before upgrading, please &lt;a href=&quot;http://codex.wordpress.org/WordPress_Backups&quot;&gt;backup your database and files&lt;/a&gt;.');
</del><ins>+                _e('&lt;strong&gt;Important:&lt;/strong&gt; before updating, please &lt;a href=&quot;http://codex.wordpress.org/WordPress_Backups&quot;&gt;backup your database and files&lt;/a&gt;.');
</ins><span class="cx">                 echo '&lt;/p&gt;&lt;/div&gt;';
</span><span class="cx"> 
</span><span class="cx">                 echo '&lt;h3 class=&quot;response&quot;&gt;';
</span><del>-                _e( 'There is a new version of WordPress available for upgrade' );
</del><ins>+                _e( 'There is a new version of WordPress available for update' );
</ins><span class="cx">                 echo '&lt;/h3&gt;';
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -175,10 +175,10 @@
</span><span class="cx">                 $core_update_version = $core_updates[0]-&gt;current;
</span><span class="cx">         ?&gt;
</span><span class="cx"> &lt;h3&gt;&lt;?php _e('Plugins'); ?&gt;&lt;/h3&gt;
</span><del>-&lt;p&gt;&lt;?php _e('The following plugins have new versions available. Check the ones you want to upgrade and then click &quot;Upgrade Plugins&quot;.'); ?&gt;&lt;/p&gt;
</del><ins>+&lt;p&gt;&lt;?php _e('The following plugins have new versions available. Check the ones you want to update and then click &quot;Update Plugins&quot;.'); ?&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;&lt;?php echo $form_action; ?&gt;&quot; name=&quot;upgrade-plugins&quot; class=&quot;upgrade&quot;&gt;
</span><span class="cx"> &lt;?php wp_nonce_field('upgrade-core'); ?&gt;
</span><del>-&lt;p&gt;&lt;input id=&quot;upgrade-plugins&quot; class=&quot;button&quot; type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Upgrade Plugins'); ?&gt;&quot; name=&quot;upgrade&quot; /&gt;&lt;/p&gt;
</del><ins>+&lt;p&gt;&lt;input id=&quot;upgrade-plugins&quot; class=&quot;button&quot; type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Update Plugins'); ?&gt;&quot; name=&quot;upgrade&quot; /&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;table class=&quot;widefat&quot; cellspacing=&quot;0&quot; id=&quot;update-plugins-table&quot;&gt;
</span><span class="cx">         &lt;thead&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="lines">@@ -224,13 +224,13 @@
</span><span class="cx">                 echo &quot;
</span><span class="cx">         &lt;tr class='active'&gt;
</span><span class="cx">                 &lt;th scope='row' class='check-column'&gt;&lt;input type='checkbox' name='checked[]' value='&quot; . esc_attr($plugin_file) . &quot;' /&gt;&lt;/th&gt;
</span><del>-                &lt;td class='plugin-title'&gt;&lt;strong&gt;{$plugin_data-&gt;Name}&lt;/strong&gt;&quot; . sprintf(__('You are running version %1$s. Upgrade to %2$s.'), $plugin_data-&gt;Version, $plugin_data-&gt;update-&gt;new_version) . $compat . $upgrade_notice . &quot;&lt;/td&gt;
</del><ins>+                &lt;td class='plugin-title'&gt;&lt;strong&gt;{$plugin_data-&gt;Name}&lt;/strong&gt;&quot; . sprintf(__('You are running version %1$s. Update to %2$s.'), $plugin_data-&gt;Version, $plugin_data-&gt;update-&gt;new_version) . $compat . $upgrade_notice . &quot;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;&quot;;
</span><span class="cx">         }
</span><span class="cx"> ?&gt;
</span><span class="cx">         &lt;/tbody&gt;
</span><span class="cx"> &lt;/table&gt;
</span><del>-&lt;p&gt;&lt;input id=&quot;upgrade-plugins-2&quot; class=&quot;button&quot; type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Upgrade Plugins'); ?&gt;&quot; name=&quot;upgrade&quot; /&gt;&lt;/p&gt;
</del><ins>+&lt;p&gt;&lt;input id=&quot;upgrade-plugins-2&quot; class=&quot;button&quot; type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Update Plugins'); ?&gt;&quot; name=&quot;upgrade&quot; /&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;/form&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><span class="lines">@@ -302,7 +302,7 @@
</span><span class="cx"> ?&gt;
</span><span class="cx">         &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx">         &lt;?php screen_icon(); ?&gt;
</span><del>-        &lt;h2&gt;&lt;?php _e('Upgrade WordPress'); ?&gt;&lt;/h2&gt;
</del><ins>+        &lt;h2&gt;&lt;?php _e('Update WordPress'); ?&gt;&lt;/h2&gt;
</ins><span class="cx"> &lt;?php
</span><span class="cx">         if ( $wp_filesystem-&gt;errors-&gt;get_error_code() ) {
</span><span class="cx">                 foreach ( $wp_filesystem-&gt;errors-&gt;get_error_messages() as $message )
</span><span class="lines">@@ -321,7 +321,7 @@
</span><span class="cx">                 if ('up_to_date' != $result-&gt;get_error_code() )
</span><span class="cx">                         show_message( __('Installation Failed') );
</span><span class="cx">         } else {
</span><del>-                show_message( __('WordPress upgraded successfully') );
</del><ins>+                show_message( __('WordPress updated successfully') );
</ins><span class="cx">                 show_message( '&lt;strong&gt;' . __('Actions:') . '&lt;/strong&gt; &lt;a href=&quot;' . esc_url( admin_url() ) . '&quot;&gt;' . __('Go to Dashboard') . '&lt;/a&gt;' );
</span><span class="cx">         }
</span><span class="cx">         echo '&lt;/div&gt;';
</span></span></pre>
</div>
</div>

</body>
</html>