Make WordPress Core


Ignore:
Timestamp:
07/28/2020 11:55:19 AM (6 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-plugin-upgrader-skin.php

    r46072 r48661  
    1717 */
    1818class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
    19         public $plugin                = '';
    20         public $plugin_active         = false;
     19
     20        /**
     21         * Holds the plugin slug in the Plugin Directory.
     22         *
     23         * @since 2.8.0
     24         *
     25         * @var object
     26         */
     27        public $plugin = '';
     28
     29        /**
     30         * Whether the plugin is active.
     31         *
     32         * @since 2.8.0
     33         *
     34         * @var bool
     35         */
     36        public $plugin_active = false;
     37
     38        /**
     39         * Whether the plugin is active for the entire network.
     40         *
     41         * @since 2.8.0
     42         *
     43         * @var bool
     44         */
    2145        public $plugin_network_active = false;
    2246
    2347        /**
    24          * @param array $args
     48         * Constructor.
     49         *
     50         * Sets up the plugin upgrader skin.
     51         *
     52         * @since 2.8.0
     53         *
     54         * @param array $args Optional. The plugin upgrader skin arguments to
     55         *                    override default options. Default empty array.
    2556         */
    2657        public function __construct( $args = array() ) {
    … …  
    4273
    4374        /**
     75         * Action to perform following a single plugin update.
     76         *
     77         * @since 2.8.0
    4478         */
    4579        public function after() {
Note: See TracChangeset for help on using the changeset viewer.