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. git-svn-id: https://develop.svn.wordpress.org/trunk@38134 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e7bd22f87e
commit
db037aad34
@ -20,8 +20,11 @@ class WP_Upgrader_Skin {
|
|||||||
public $done_footer = false;
|
public $done_footer = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Holds the result of an upgrade.
|
||||||
*
|
*
|
||||||
* @var string|false|WP_Error
|
* @since 2.8.0
|
||||||
|
* @access public
|
||||||
|
* @var string|bool|WP_Error
|
||||||
*/
|
*/
|
||||||
public $result = false;
|
public $result = false;
|
||||||
public $options = array();
|
public $options = array();
|
||||||
@ -51,10 +54,14 @@ class WP_Upgrader_Skin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Sets the result of an upgrade.
|
||||||
*
|
*
|
||||||
* @param string|false|WP_Error $result
|
* @since 2.8.0
|
||||||
|
* @access public
|
||||||
|
*
|
||||||
|
* @param string|bool|WP_Error $result The result of an upgrade.
|
||||||
*/
|
*/
|
||||||
public function set_result($result) {
|
public function set_result( $result ) {
|
||||||
$this->result = $result;
|
$this->result = $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user