From c31fd4988a2504aad6bde49c9a4c647d6da253c8 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 26 Jun 2020 18:32:44 +0000 Subject: [PATCH] Docs: Clarify the description of functions that check for and perform updates. See #49572, #50052. git-svn-id: https://develop.svn.wordpress.org/trunk@48183 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/update.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php index d0c9839755..46e6431487 100644 --- a/src/wp-includes/update.php +++ b/src/wp-includes/update.php @@ -251,7 +251,9 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) { } /** - * Check plugin versions against the latest versions hosted on WordPress.org. + * Checks for available updates to plugins based on the latest versions hosted on WordPress.org. + * + * Despite its name this function does not actually perform any updates, it only checks for available updates. * * A list of all plugins installed is sent to WP, along with the site locale. * @@ -444,7 +446,9 @@ function wp_update_plugins( $extra_stats = array() ) { } /** - * Check theme versions against the latest versions hosted on WordPress.org. + * Checks for available updates to themes based on the latest versions hosted on WordPress.org. + * + * Despite its name this function does not actually perform any updates, it only checks for available updates. * * A list of all themes installed is sent to WP, along with the site locale. * @@ -626,6 +630,8 @@ function wp_update_themes( $extra_stats = array() ) { /** * Performs WordPress automatic background updates. * + * Updates WordPress core plus any plugins and themes that have automatic updates enabled. + * * @since 3.7.0 */ function wp_maybe_auto_update() {