|
@@ -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}" );
}