From 510b9d60ae0f3879d49408aaf962c0ba8b14dc22 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 19 Jun 2021 21:36:01 +0000 Subject: [PATCH] Docs: Correct DocBlock formatting for `Core_Upgrader::upgrade()`. Document the `$auto_update_settings` parameter of the `after_core_auto_updates_settings` action. Follow-up to [49254]. See #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@51185 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-core-upgrader.php | 14 +++++++------- src/wp-admin/update-core.php | 8 ++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/wp-admin/includes/class-core-upgrader.php b/src/wp-admin/includes/class-core-upgrader.php index 87596e1da6..a7a1d05f2b 100644 --- a/src/wp-admin/includes/class-core-upgrader.php +++ b/src/wp-admin/includes/class-core-upgrader.php @@ -48,14 +48,14 @@ class Core_Upgrader extends WP_Upgrader { * * @param object $current Response object for whether WordPress is current. * @param array $args { - * Optional. Arguments for upgrading WordPress core. Default empty array. + * Optional. Arguments for upgrading WordPress core. Default empty array. * - * @type bool $pre_check_md5 Whether to check the file checksums before - * attempting the upgrade. Default true. - * @type bool $attempt_rollback Whether to attempt to rollback the chances if - * there is a problem. Default false. - * @type bool $do_rollback Whether to perform this "upgrade" as a rollback. - * Default false. + * @type bool $pre_check_md5 Whether to check the file checksums before + * attempting the upgrade. Default true. + * @type bool $attempt_rollback Whether to attempt to rollback the chances if + * there is a problem. Default false. + * @type bool $do_rollback Whether to perform this "upgrade" as a rollback. + * Default false. * } * @return string|false|WP_Error New WordPress version on success, false or WP_Error on failure. */ diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 1ff783f041..ae3924c9b2 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -421,6 +421,14 @@ function core_auto_updates_settings() { * Fires after the major core auto-update settings. * * @since 5.6.0 + * + * @param array $auto_update_settings { + * Array of core auto-update settings. + * + * @type bool $dev Whether to enable automatic updates for development versions. + * @type bool $minor Whether to enable minor automatic core updates. + * @type bool $major Whether to enable major automatic core updates. + * } */ do_action( 'after_core_auto_updates_settings', $auto_update_settings ); }