Changeset 15996 for trunk/wp-admin/update-core.php
- Timestamp:
- 10/27/2010 02:21:49 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/update-core.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update-core.php
r15979 r15996 122 122 if ( $upgrade_error ) { 123 123 echo '<div class="error"><p>'; 124 _e('Please select one or more plugins to upgrade.'); 124 if ( $upgrade_error == 'themes' ) 125 _e('Please select one or more themes to update.'); 126 else 127 _e('Please select one or more plugins to update.'); 125 128 echo '</p></div>'; 126 129 } 130 131 echo '<p>'; 132 /* translators: %1 date, %2 time. */ 133 printf( __('Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) ); 134 echo ' <a class="button" href="' . esc_url( self_admin_url('update-core.php') ) . '">' . __( 'Check Again' ) . '</a>'; 135 echo '</p>'; 127 136 128 137 if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) { … … 131 140 echo '</h3>'; 132 141 } else { 133 echo '<div class="updated "><p>';142 echo '<div class="updated inline"><p>'; 134 143 _e('<strong>Important:</strong> before updating, please <a href="http://codex.wordpress.org/WordPress_Backups">back up your database and files</a>. For help with updates, visit the <a href="http://codex.wordpress.org/Updating_WordPress">Updating WordPress</a> Codex page.'); 135 144 echo '</p></div>'; … … 374 383 375 384 $upgrade_error = false; 376 if ( 'do-plugin-upgrade' == $action && !isset($_GET['plugins']) && !isset($_POST['checked']) ) { 377 $upgrade_error = true; 385 if ( ( 'do-theme-upgrade' == $action || ( 'do-plugin-upgrade' == $action && ! isset( $_GET['plugins'] ) ) ) 386 && ! isset( $_POST['checked'] ) ) { 387 $upgrade_error = $action == 'do-theme-upgrade' ? 'themes' : 'plugins'; 378 388 $action = 'upgrade-core'; 379 389 }
Note: See TracChangeset
for help on using the changeset viewer.