Make WordPress Core


Ignore:
Timestamp:
11/23/2011 11:38:36 PM (12 years ago)
Author:
nacin
Message:

Redirect to about.php on update. props ocean90. see #18467.

File:
1 edited

Legend:

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

    r19066 r19442  
    523523}
    524524
     525/**
     526 * Redirect to the About WordPress page after a successful upgrade.
     527 *
     528 * This is a temporary function for the 3.3 upgrade only and will be removed in a later version.
     529 *
     530 * @since 3.3.0
     531 *
     532 */
     533function _redirect_to_about_wordpress() {
     534    // Only for WP version < 3.3.0
     535    if ( version_compare( $GLOBALS['wp_version'], '3.3.0', '>' ) )
     536        return;
    525537?>
     538<script type="text/javascript">
     539window.location = '<?php echo admin_url( 'about.php?upgraded' ); ?>';
     540</script>
     541<?php
     542}
     543
     544add_action( 'admin_footer-update-core.php', '_redirect_to_about_wordpress' );
     545?>
Note: See TracChangeset for help on using the changeset viewer.