WordPress.org

Make WordPress Core

Ticket #18467: 18467.3.diff

File 18467.3.diff, 1.9 KB (added by nacin, 6 years ago)
  • wp-admin/includes/update-core.php

     
    535535 * @since 3.3.0
    536536 *
    537537 */
    538 function _redirect_to_about_wordpress( $wp_version ) {
     538function _redirect_to_about_wordpress( $new_version ) {
    539539        global $wp_version, $pagenow, $action;
    540540
    541541        if ( version_compare( $wp_version, '3.3', '>=' ) )
     
    553553
    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        ?>
    560560<script type="text/javascript">
  • wp-admin/update-core.php

     
    389389        ?>
    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
    395395}