Changeset 8597 for trunk/wp-admin/includes/update.php
- Timestamp:
- 08/09/2008 03:20:16 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/update.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r8595 r8597 16 16 switch ( $cur->response ) { 17 17 case 'development' : 18 return sprintf( '| '.__( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), $GLOBALS['wp_version'], wp_nonce_url('update.php?action=upgrade-core', 'upgrade-core'));18 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'); 19 19 break; 20 20 … … 40 40 41 41 if ( current_user_can('manage_options') ) 42 $msg = sprintf( __('WordPress %1$s is available! <a href="%2$s">Please update now</a>.'), $cur->current, wp_nonce_url('update.php?action=upgrade-core', 'upgrade-core'));42 $msg = sprintf( __('WordPress %1$s is available! <a href="%2$s">Please update now</a>.'), $cur->current, 'update.php?action=upgrade-core' ); 43 43 else 44 44 $msg = sprintf( __('WordPress %1$s is available! Please notify the site administrator.'), $cur->current ); … … 54 54 $msg = sprintf( __('This is WordPress version %s.'), $GLOBALS['wp_version'] ); 55 55 if ( isset( $cur->response ) && $cur->response == 'upgrade' && current_user_can('manage_options') ) 56 $msg .= " <a href=' " . wp_nonce_url('update.php?action=upgrade-core', 'upgrade-core') . "' class='rbutton'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';56 $msg .= " <a href='update.php?action=upgrade-core' class='rbutton'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>'; 57 57 58 58 echo "<span id='wp-version-message'>$msg</span>";
Note: See TracChangeset
for help on using the changeset viewer.