Make WordPress Core


Ignore:
Timestamp:
08/09/2008 03:20:16 AM (17 years ago)
Author:
ryan
Message:

Landing page for auto upgrade. see #5560

File:
1 edited

Legend:

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

    r8595 r8597  
    1616    switch ( $cur->response ) {
    1717    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');
    1919    break;
    2020
     
    4040
    4141    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' );
    4343    else
    4444        $msg = sprintf( __('WordPress %1$s is available! Please notify the site administrator.'), $cur->current );
     
    5454    $msg = sprintf( __('This is WordPress version %s.'), $GLOBALS['wp_version'] );
    5555    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>';
    5757
    5858    echo "<span id='wp-version-message'>$msg</span>";
Note: See TracChangeset for help on using the changeset viewer.