From 0e5a98eec5f50de9423ca155521ecb6eb6d51650 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 19 Jun 2021 21:37:57 +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. Built from https://develop.svn.wordpress.org/trunk@51185 git-svn-id: http://core.svn.wordpress.org/trunk@50794 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-core-upgrader.php | 14 +++++++------- wp-admin/update-core.php | 8 ++++++++ wp-includes/version.php | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/wp-admin/includes/class-core-upgrader.php b/wp-admin/includes/class-core-upgrader.php index 87596e1da6..a7a1d05f2b 100644 --- a/wp-admin/includes/class-core-upgrader.php +++ b/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/wp-admin/update-core.php b/wp-admin/update-core.php index 1ff783f041..ae3924c9b2 100644 --- a/wp-admin/update-core.php +++ b/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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index fe98f7a925..ca907c996d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta2-51184'; +$wp_version = '5.8-beta2-51185'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.