| | 540 | |
| | 541 | // Load the updated default text localization domain for new strings |
| | 542 | unload_textdomain( 'default' ); // Needed? |
| | 543 | $locale = get_locale(); |
| | 544 | load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" ); |
| | 545 | |
| | 546 | // Show info messages, see do_core_upgrade() |
| | 547 | show_message( __('WordPress updated successfully') ); |
| | 548 | show_message( sprintf( __('You will be redirected to the About WordPress Page, if not click <a href="%s">here</a>'), esc_url( admin_url( 'about.php?upgraded' ) ) ) ); |
| | 549 | echo '</div>'; |
| | 550 | |
| | 551 | // Print javascript data |
| | 552 | add_action( 'admin_footer-update-core.php', '_print_js_redirect_to_about_wordpress' ); |
| | 553 | |
| | 554 | // Include admin-footer.php and exit |
| | 555 | include(ABSPATH . 'wp-admin/admin-footer.php'); |
| | 556 | exit(); |
| | 557 | } |
| | 558 | add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' ); |
| | 559 | |
| | 560 | /** |
| | 561 | * Print Javascript data for _redirect_to_about_wordpress(). |
| | 562 | * |
| | 563 | * This is a temporary function for the 3.3 upgrade only and will be removed in a later version. |
| | 564 | * |
| | 565 | * @since 3.3.0 |
| | 566 | * |
| | 567 | */ |
| | 568 | function _print_js_redirect_to_about_wordpress() { |