Make WordPress Core

Ticket #39593: 39593.2.diff

File 39593.2.diff, 2.0 KB (added by carl-alberto, 8 years ago)

Another attempt to improve docblock

  • src/wp-admin/includes/class-automatic-upgrader-skin.php

    diff --git src/wp-admin/includes/class-automatic-upgrader-skin.php src/wp-admin/includes/class-automatic-upgrader-skin.php
    index 23fab8b..e7bf0da 100644
     
    1919 * @see Bulk_Upgrader_Skin
    2020 */
    2121class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
     22
     23        /**
     24         * Variable that holds internal messages of array in this class.
     25         *
     26         * @access protected
     27         * @var array
     28         */
    2229        protected $messages = array();
    2330
    2431        /**
    class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { 
    4249                        $this->options['context'] = $context;
    4350                }
    4451                // TODO: fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version
    45                 // This will output a credentials form in event of failure, We don't want that, so just hide with a buffer
     52                // This will output a credentials form in event of failure, We don't want that, so just hide with a buffer.
    4653                ob_start();
    4754                $result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership );
    4855                ob_end_clean();
    class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { 
    5057        }
    5158
    5259        /**
     60         * Returns upgrade messages.
     61         *
    5362         * @access public
    5463         *
    5564         * @return array
    class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { 
    5968        }
    6069
    6170        /**
    62          * @param string|array|WP_Error $data
     71         * Displays success or error message on the update process.
     72         *
     73         * @param string $data Upgrade function that needs feedback to show if success or fail.
    6374         */
    6475        public function feedback( $data ) {
    6576                if ( is_wp_error( $data ) ) {
    class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { 
    98109        }
    99110
    100111        /**
     112         * Buffers the output.
     113         *
    101114         * @access public
    102115         */
    103116        public function header() {
    class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { 
    105118        }
    106119
    107120        /**
     121         * Cleans the output buffer.
     122         *
    108123         * @access public
    109124         */
    110125        public function footer() {