Changeset 19529
- Timestamp:
- 12/01/2011 05:03:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update-core.php
r19527 r19529 537 537 */ 538 538 function _redirect_to_about_wordpress( $wp_version ) { 539 global $wp_version, $pagenow, $action; 540 541 if ( version_compare( $wp_version, '3.3', '>=' ) ) 542 return; 543 544 // Ensure we only run this on the update-core.php page. wp_update_core() could be called in other contexts. 545 if ( 'update-core.php' != $pagenow ) 546 return; 547 548 if ( 'do-core-upgrade' != $action && 'do-core-reinstall' != $action ) 549 return; 550 539 551 // Load the updated default text localization domain for new strings 540 552 load_default_textdomain(); … … 555 567 exit(); 556 568 } 557 if ( version_compare( $GLOBALS['wp_version'], '3.3', '<' ) && 'update-core.php' == $GLOBALS['pagenow'] ) 558 add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' ); 569 add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' );
Note: See TracChangeset
for help on using the changeset viewer.