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
This commit is contained in:
Sergey Biryukov 2021-06-19 21:37:57 +00:00
parent 6c01c2a864
commit 0e5a98eec5
3 changed files with 16 additions and 8 deletions

View File

@ -48,14 +48,14 @@ class Core_Upgrader extends WP_Upgrader {
* *
* @param object $current Response object for whether WordPress is current. * @param object $current Response object for whether WordPress is current.
* @param array $args { * @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 * @type bool $pre_check_md5 Whether to check the file checksums before
* attempting the upgrade. Default true. * attempting the upgrade. Default true.
* @type bool $attempt_rollback Whether to attempt to rollback the chances if * @type bool $attempt_rollback Whether to attempt to rollback the chances if
* there is a problem. Default false. * there is a problem. Default false.
* @type bool $do_rollback Whether to perform this "upgrade" as a rollback. * @type bool $do_rollback Whether to perform this "upgrade" as a rollback.
* Default false. * Default false.
* } * }
* @return string|false|WP_Error New WordPress version on success, false or WP_Error on failure. * @return string|false|WP_Error New WordPress version on success, false or WP_Error on failure.
*/ */

View File

@ -421,6 +421,14 @@ function core_auto_updates_settings() {
* Fires after the major core auto-update settings. * Fires after the major core auto-update settings.
* *
* @since 5.6.0 * @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 ); do_action( 'after_core_auto_updates_settings', $auto_update_settings );
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.