X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/256a3b381f63716209b3527d0a14442ae570c283..4713a14935b83517997f3c88f808eb41da55033d:/wp-admin/update-core.php diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 61535996..a8a7aa99 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -11,6 +11,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); wp_enqueue_style( 'plugin-install' ); wp_enqueue_script( 'plugin-install' ); +wp_enqueue_script( 'updates' ); add_thickbox(); if ( is_multisite() && ! is_network_admin() ) { @@ -133,7 +134,7 @@ function dismissed_updates() { /** * Display upgrade WordPress for downloading latest or upgrading automatically form. * - * @since 2.7 + * @since 2.7.0 * * @return null */ @@ -220,7 +221,7 @@ function list_plugin_updates() {

- +
@@ -298,7 +299,7 @@ function list_theme_updates() {

-
+
@@ -353,7 +354,7 @@ function list_translation_updates() { /** * Upgrade WordPress core display. * - * @since 2.7 + * @since 2.7.0 * * @return null */ @@ -457,10 +458,10 @@ if ( ( 'do-theme-upgrade' == $action || ( 'do-plugin-upgrade' == $action && ! is } $title = __('WordPress Updates'); -$parent_file = 'tools.php'; +$parent_file = 'index.php'; $updates_overview = '

' . __( 'On this screen, you can update to the latest version of WordPress, as well as update your themes and plugins from the WordPress.org repositories.' ) . '

'; -$updates_overview .= '

' . __( 'If an update is available, you᾿ll see a notification appear in the Toolbar and navigation menu.' ) . ' ' . __( 'Keeping your site up to date is important for your site’s security, and makes the internet a safer place for you and your readers.' ) . '

'; +$updates_overview .= '

' . __( 'If an update is available, you᾿ll see a notification appear in the Toolbar and navigation menu.' ) . ' ' . __( 'Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.' ) . '

'; get_current_screen()->add_help_tab( array( 'id' => 'overview', @@ -484,7 +485,7 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . '

' . __( 'Documentation on Updating WordPress' ) . '

' . - '

' . __( 'Support Forums' ) . '

' + '

' . __( 'Support Forums' ) . '

' ); if ( 'upgrade-core' == $action ) { @@ -521,7 +522,12 @@ if ( 'upgrade-core' == $action ) { if ( $core || $plugins || $themes ) list_translation_updates(); unset( $core, $plugins, $themes ); - do_action('core_upgrade_preamble'); + /** + * Fires after the core, plugin, and theme update tables. + * + * @since 2.9.0 + */ + do_action( 'core_upgrade_preamble' ); echo ''; include(ABSPATH . 'wp-admin/admin-footer.php'); @@ -627,5 +633,14 @@ if ( 'upgrade-core' == $action ) { require_once( ABSPATH . 'wp-admin/admin-footer.php' ); } else { - do_action('update-core-custom_' . $action); + /** + * Fires for each custom update action on the WordPress Updates screen. + * + * The dynamic portion of the hook name, $action, refers to the + * passed update action. The hook fires in lieu of all available + * default update actions. + * + * @since 3.2.0 + */ + do_action( "update-core-custom_{$action}" ); }