WordPress.org

Make WordPress Core

Changeset 19532


Ignore:
Timestamp:
12/01/11 06:02:18 (2 years ago)
Author:
nacin
Message:

Remove debug cruft and fix variable collision. fixes #18467.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r19529 r19532  
    536536 * 
    537537 */ 
    538 function _redirect_to_about_wordpress( $wp_version ) { 
     538function _redirect_to_about_wordpress( $new_version ) { 
    539539    global $wp_version, $pagenow, $action; 
    540540 
     
    554554    // See do_core_upgrade() 
    555555    show_message( __('WordPress updated successfully') ); 
    556     show_message( '<span class="hide-if-no-js">' . sprintf( __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%s">here</a>.' ), $wp_version, esc_url( admin_url( 'about.php?updated' ) ) ) . '</span>' ); 
    557     show_message( '<span class="hide-if-js">' . sprintf( __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), $wp_version, esc_url( admin_url( 'about.php?updated' ) ) ) . '</span>' ); 
     556    show_message( '<span class="hide-if-no-js">' . sprintf( __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%s">here</a>.' ), $new_version, esc_url( admin_url( 'about.php?updated' ) ) ) . '</span>' ); 
     557    show_message( '<span class="hide-if-js">' . sprintf( __( 'Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.' ), $new_version, esc_url( admin_url( 'about.php?updated' ) ) ) . '</span>' ); 
    558558    echo '</div>'; 
    559559    ?> 
  • trunk/wp-admin/update-core.php

    r19528 r19532  
    390390    </div> 
    391391    <script type="text/javascript"> 
    392     //window.location = '<?php echo admin_url( 'about.php?upgraded' ); ?>'; 
     392    window.location = '<?php echo admin_url( 'about.php?upgraded' ); ?>'; 
    393393    </script> 
    394394    <?php 
Note: See TracChangeset for help on using the changeset viewer.