Make WordPress Core

Ticket #42923: 42923.3.patch

File 42923.3.patch, 6.0 KB (added by ramiy, 5 years ago)
  • wp-admin/includes/class-plugin-installer-skin.php

     
    4646        }
    4747
    4848        /**
     49         * Action to perform before installing a plugin.
     50         *
     51         * @since 2.8.0
    4952         */
    5053        public function before() {
    5154                if ( ! empty( $this->api ) ) {
     
    7881        }
    7982
    8083        /**
     84         * Action to perform following a plugin install.
     85         *
     86         * @since 2.8.0
    8187         */
    8288        public function after() {
    8389                // Check if the plugin can be overwritten and output the HTML.
  • wp-admin/includes/class-plugin-upgrader-skin.php

     
    1616 * @see WP_Upgrader_Skin
    1717 */
    1818class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
     19        /**
     20         * Holds the plugin slug in the Plugin Directory.
     21         *
     22         * @since 2.8.0
     23         *
     24         * @var object
     25         */
    1926        public $plugin                = '';
     27
     28        /**
     29         * Whether the plugin is active.
     30         *
     31         * @since 2.8.0
     32         *
     33         * @var bool
     34         */
    2035        public $plugin_active         = false;
     36
     37        /**
     38         * Whether the plugin is active for the entire network.
     39         *
     40         * @since 2.8.0
     41         *
     42         * @var bool
     43         */
    2144        public $plugin_network_active = false;
    2245
    2346        /**
    24          * @param array $args
     47         * Constructor.
     48         *
     49         * Sets up the plugin upgrader skin.
     50         *
     51         * @since 2.8.0
     52         *
     53         * @param array $args Optional. The plugin upgrader skin arguments to
     54         *                    override default options. Default is an empty array.
    2555         */
    2656        public function __construct( $args = array() ) {
    2757                $defaults = array(
     
    4171        }
    4272
    4373        /**
     74         * Action to perform following a single plugin update.
     75         *
     76         * @since 2.8.0
    4477         */
    4578        public function after() {
    4679                $this->plugin = $this->upgrader->plugin_info();
  • wp-admin/includes/class-theme-installer-skin.php

     
    4646        }
    4747
    4848        /**
     49         * Action to perform before installing a theme.
     50         *
     51         * @since 2.8.0
    4952         */
    5053        public function before() {
    5154                if ( ! empty( $this->api ) ) {
     
    7881        }
    7982
    8083        /**
     84         * Action to perform following a single theme install.
     85         *
     86         * @since 2.8.0
    8187         */
    8288        public function after() {
    8389                if ( $this->do_overwrite() ) {
  • wp-admin/includes/class-theme-upgrader-skin.php

     
    1616 * @see WP_Upgrader_Skin
    1717 */
    1818class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
     19
     20        /**
     21         * Holds the theme slug in the Theme Directory.
     22         *
     23         * @since 2.8.0
     24         *
     25         * @var object
     26         */
    1927        public $theme = '';
    2028
    2129        /**
    22          * @param array $args
     30         * Constructor.
     31         *
     32         * Sets up the theme upgrader skin.
     33         *
     34         * @since 2.8.0
     35         *
     36         * @param array $args Optional. The theme upgrader skin arguments to
     37         *                    override default options. Default is an empty array.
    2338         */
    2439        public function __construct( $args = array() ) {
    2540                $defaults = array(
     
    3651        }
    3752
    3853        /**
     54         * Action to perform following a single theme update.
     55         *
     56         * @since 2.8.0
    3957         */
    4058        public function after() {
    4159                $this->decrement_update_count( 'theme' );
  • wp-admin/includes/class-wp-ajax-upgrader-skin.php

     
    2222         * Holds the WP_Error object.
    2323         *
    2424         * @since 4.6.0
     25         *
    2526         * @var null|WP_Error
    2627         */
    2728        protected $errors = null;
     
    2930        /**
    3031         * Constructor.
    3132         *
     33         * Sets up the WordPress Ajax upgrader skin.
     34         *
    3235         * @since 4.6.0
    3336         *
    34          * @param array $args Options for the upgrader, see WP_Upgrader_Skin::__construct().
     37         * @param array $args Optional. The WordPress Ajax upgrader skin
     38         *                    arguments to override default options,
     39         *                    see WP_Upgrader_Skin::__construct().
     40         *                    Default is an empty array.
    3541         */
    3642        public function __construct( $args = array() ) {
    3743                parent::__construct( $args );
  • wp-admin/includes/class-wp-upgrader-skin.php

     
    1515 */
    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 to header is done.
     29         *
     30         * @since 2.8.0
     31         *
     32         * @var bool
     33         */
    1934        public $done_header = false;
     35
     36        /**
     37         * Whether to footer is done.
     38         *
     39         * @since 2.8.0
     40         *
     41         * @var bool
     42         */
    2043        public $done_footer = false;
    2144
    2245        /**
     
    2346         * Holds the result of an upgrade.
    2447         *
    2548         * @since 2.8.0
     49         *
    2650         * @var string|bool|WP_Error
    2751         */
    2852        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 is an empty array.
    3372         */
    3473        public function __construct( $args = array() ) {
    3574                $defaults      = array(
     
    161200        }
    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() {}
    170215