Make WordPress Core

Changeset 51185


Ignore:
Timestamp:
06/19/2021 09:36:01 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r50652 r51185  
    4949     * @param object $current Response object for whether WordPress is current.
    5050     * @param array  $args {
    51      *        Optional. Arguments for upgrading WordPress core. Default empty array.
    52      *
    53      *        @type bool $pre_check_md5    Whether to check the file checksums before
    54      *                                     attempting the upgrade. Default true.
    55      *        @type bool $attempt_rollback Whether to attempt to rollback the chances if
    56      *                                     there is a problem. Default false.
    57      *        @type bool $do_rollback      Whether to perform this "upgrade" as a rollback.
    58      *                                     Default false.
     51     *     Optional. Arguments for upgrading WordPress core. Default empty array.
     52     *
     53     *     @type bool $pre_check_md5    Whether to check the file checksums before
     54     *                                  attempting the upgrade. Default true.
     55     *     @type bool $attempt_rollback Whether to attempt to rollback the chances if
     56     *                                  there is a problem. Default false.
     57     *     @type bool $do_rollback      Whether to perform this "upgrade" as a rollback.
     58     *                                  Default false.
    5959     * }
    6060     * @return string|false|WP_Error New WordPress version on success, false or WP_Error on failure.
  • trunk/src/wp-admin/update-core.php

    r50803 r51185  
    422422     *
    423423     * @since 5.6.0
     424     *
     425     * @param array $auto_update_settings {
     426     *     Array of core auto-update settings.
     427     *
     428     *     @type bool $dev   Whether to enable automatic updates for development versions.
     429     *     @type bool $minor Whether to enable minor automatic core updates.
     430     *     @type bool $major Whether to enable major automatic core updates.
     431     * }
    424432     */
    425433    do_action( 'after_core_auto_updates_settings', $auto_update_settings );
Note: See TracChangeset for help on using the changeset viewer.