Changeset 9543 for trunk/wp-admin/includes/update.php
- Timestamp:
- 11/06/2008 03:31:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r9524 r9543 95 95 switch ( $cur->response ) { 96 96 case 'development' : 97 return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), $GLOBALS['wp_version'], 'update .php?action=upgrade-core');97 return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), $GLOBALS['wp_version'], 'update-core.php'); 98 98 break; 99 99 100 100 case 'upgrade' : 101 101 if ( current_user_can('manage_options') ) { 102 return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', wp_nonce_url('update.php?action=upgrade-core', 'upgrade-core'), $cur->current);102 return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', 'update-core.php', $cur->current); 103 103 break; 104 104 } … … 119 119 120 120 if ( current_user_can('manage_options') ) 121 $msg = sprintf( __('WordPress %1$s is available! <a href="%2$s">Please update now</a>.'), $cur->current, 'update .php?action=upgrade-core' );121 $msg = sprintf( __('WordPress %1$s is available! <a href="%2$s">Please update now</a>.'), $cur->current, 'update-core.php' ); 122 122 else 123 123 $msg = sprintf( __('WordPress %1$s is available! Please notify the site administrator.'), $cur->current ); … … 133 133 $msg = sprintf( __('You are using <span class="b">WordPress %s</span>.'), $GLOBALS['wp_version'] ); 134 134 if ( isset( $cur->response ) && $cur->response == 'upgrade' && current_user_can('manage_options') ) 135 $msg .= " <a href='update .php?action=upgrade-core' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';135 $msg .= " <a href='update-core.php' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>'; 136 136 137 137 echo "<span id='wp-version-message'>$msg</span>"; … … 480 480 481 481 if ( current_user_can('manage_options') ) 482 $msg = sprintf( __('An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.'), 'update .php?action=upgrade-core' );482 $msg = sprintf( __('An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.'), 'update-core.php' ); 483 483 else 484 484 $msg = __('An automated WordPress update has failed to complete! Please notify the site administrator.');
Note: See TracChangeset
for help on using the changeset viewer.