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
This commit is contained in:
Sergey Biryukov 2021-06-19 21:36:01 +00:00
parent ceb12aa0c7
commit 510b9d60ae
2 changed files with 15 additions and 7 deletions

View File

@ -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.
*/

View File

@ -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 );
}