Make WordPress Core


Ignore:
Timestamp:
11/06/2008 03:31:41 AM (16 years ago)
Author:
ryan
Message:

More core update to update-core.php. Allow re-installing current version (requires api.wp.org changes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update.php

    r9524 r9543  
    9595    switch ( $cur->response ) {
    9696    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');
    9898    break;
    9999
    100100    case 'upgrade' :
    101101        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);
    103103            break;
    104104        }
     
    119119
    120120    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' );
    122122    else
    123123        $msg = sprintf( __('WordPress %1$s is available! Please notify the site administrator.'), $cur->current );
     
    133133    $msg = sprintf( __('You are using <span class="b">WordPress %s</span>.'), $GLOBALS['wp_version'] );
    134134    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>';
    136136
    137137    echo "<span id='wp-version-message'>$msg</span>";
     
    480480
    481481    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' );
    483483    else
    484484        $msg = __('An automated WordPress update has failed to complete! Please notify the site administrator.');
Note: See TracChangeset for help on using the changeset viewer.