From 0753c12b85c42f9d3b0f338db5a76d0ec6753cf7 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 27 Oct 2013 18:37:09 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/update.php. Props ninio, kpdesign. Fixes #25723. Built from https://develop.svn.wordpress.org/trunk@25951 git-svn-id: http://core.svn.wordpress.org/trunk@25910 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/wp-admin/update.php b/wp-admin/update.php index b89ada27de..4290e58d78 100644 --- a/wp-admin/update.php +++ b/wp-admin/update.php @@ -252,6 +252,15 @@ if ( isset($_GET['action']) ) { include(ABSPATH . 'wp-admin/admin-footer.php'); } else { - do_action('update-custom_' . $action); + /** + * Fires when a custom plugin or theme update request is received. + * + * The dynamic portion of the hook name, $action, refers to the action + * provided in the request for wp-admin/update.php. Can be used to + * provide custom update functionality for themes and plugins. + * + * @since 2.8.0 + */ + do_action( "update-custom_{$action}" ); } }