From fa271ded201a7cbee79c60b9033a6ee2353ba417 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 2 Jan 2014 03:07:10 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/update-core.php. Props JoshuaAbenazer, kpdesign. Fixes #25991. Built from https://develop.svn.wordpress.org/trunk@26894 git-svn-id: http://core.svn.wordpress.org/trunk@26777 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 95e9dd8e43..04faf2cb83 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -521,7 +521,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 +632,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}" ); }