From efcc69ed8456537869c4b94376fdd3f3474dbbc1 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Wed, 16 Jan 2019 03:37:38 +0000 Subject: [PATCH] Docs: Add documentation for the `wp_maybe_auto_update` action. Props MikeGillihan. Fixes #43301. git-svn-id: https://develop.svn.wordpress.org/trunk@44609 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/update.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php index 7e6bb65421..c815d157aa 100644 --- a/src/wp-includes/update.php +++ b/src/wp-includes/update.php @@ -232,6 +232,11 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) { // Trigger background updates if running non-interactively, and we weren't called from the update handler. if ( $doing_cron && ! doing_action( 'wp_maybe_auto_update' ) ) { + /** + * Fires during wp_cron, starting the auto update process. + * + * @since 3.9.0 + */ do_action( 'wp_maybe_auto_update' ); } }