mirror of
git://develop.git.wordpress.org/
synced 2025-03-22 04:49:49 +01:00
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:
parent
ceb12aa0c7
commit
510b9d60ae
@ -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.
|
||||
*/
|
||||
|
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user