Make WordPress Core


Ignore:
Timestamp:
07/22/2016 10:42:35 AM (9 years ago)
Author:
ocean90
Message:

Docs: Change type of WP_Upgrader_Skin::$result to 'string|bool|WP_Error'.

$result can be true too, see Language_Pack_Upgrader::bulk_upgrade().

See #32246.

File:
1 edited

Legend:

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

    r37714 r38134  
    2121
    2222    /**
    23      *
    24      * @var string|false|WP_Error
     23     * Holds the result of an upgrade.
     24     *
     25     * @since 2.8.0
     26     * @access public
     27     * @var string|bool|WP_Error
    2528     */
    2629    public $result = false;
     
    5255
    5356    /**
    54      *
    55      * @param string|false|WP_Error $result
    56      */
    57     public function set_result($result) {
     57     * Sets the result of an upgrade.
     58     *
     59     * @since 2.8.0
     60     * @access public
     61     *
     62     * @param string|bool|WP_Error $result The result of an upgrade.
     63     */
     64    public function set_result( $result ) {
    5865        $this->result = $result;
    5966    }
Note: See TracChangeset for help on using the changeset viewer.