Make WordPress Core


Ignore:
Timestamp:
07/28/2020 11:55:19 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing documentation for various upgrade/install class properties and methods.

Props ramiy.
Fixes #42923.

File:
1 edited

Legend:

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

    r48508 r48661  
    1616class WP_Upgrader_Skin {
    1717
     18    /**
     19     * Holds the upgrader data.
     20     *
     21     * @since 2.8.0
     22     *
     23     * @var object
     24     */
    1825    public $upgrader;
     26
     27    /**
     28     * Whether header is done.
     29     *
     30     * @since 2.8.0
     31     *
     32     * @var bool
     33     */
    1934    public $done_header = false;
     35
     36    /**
     37     * Whether footer is done.
     38     *
     39     * @since 2.8.0
     40     *
     41     * @var bool
     42     */
    2043    public $done_footer = false;
    2144
     
    2447     *
    2548     * @since 2.8.0
     49     *
    2650     * @var string|bool|WP_Error
    2751     */
    28     public $result  = false;
     52    public $result = false;
     53
     54    /**
     55     * Holds the options of an upgrade.
     56     *
     57     * @since 2.8.0
     58     *
     59     * @var array
     60     */
    2961    public $options = array();
    3062
    3163    /**
    32      * @param array $args
     64     * Constructor.
     65     *
     66     * Sets up the generic skin for the WordPress Upgrader classes.
     67     *
     68     * @since 2.8.0
     69     *
     70     * @param array $args Optional. The WordPress upgrader skin arguments to
     71     *                    override default options. Default empty array.
    3372     */
    3473    public function __construct( $args = array() ) {
     
    162201
    163202    /**
     203     * Action to perform before an update.
     204     *
     205     * @since 2.8.0
    164206     */
    165207    public function before() {}
    166208
    167209    /**
     210     * Action to perform following an update.
     211     *
     212     * @since 2.8.0
    168213     */
    169214    public function after() {}
Note: See TracChangeset for help on using the changeset viewer.