Make WordPress Core


Ignore:
Timestamp:
05/29/2015 09:16:59 PM (11 years ago)
Author:
wonderboymusic
Message:

Add (more) missing doc blocks to wp-admin/includes/*.

See #32444.

File:
1 edited

Legend:

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

    r31506 r32655  
    2323        public $options = array();
    2424
     25        /**
     26         *
     27         * @param array $args
     28         */
    2529        public function __construct($args = array()) {
    2630                $defaults = array( 'url' => '', 'nonce' => '', 'title' => '', 'context' => false );
     
    4448        }
    4549
     50        /**
     51         *
     52         * @param bool   $error
     53         * @param string $context
     54         * @param bool   $allow_relaxed_file_ownership
     55         * @return type
     56         */
    4657        public function request_filesystem_credentials( $error = false, $context = false, $allow_relaxed_file_ownership = false ) {
    4758                $url = $this->options['url'];
     
    7485        }
    7586
     87        /**
     88         *
     89         * @param string|WP_Error $errors
     90         */
    7691        public function error($errors) {
    7792                if ( ! $this->done_header )
     
    89104        }
    90105
     106        /**
     107         *
     108         * @param string $string
     109         */
    91110        public function feedback($string) {
    92111                if ( isset( $this->upgrader->strings[$string] ) )
     
    155174        public $plugin_network_active = false;
    156175
    157         public function __construct($args = array()) {
     176        /**
     177         *
     178         * @param array $args
     179         */
     180        public function __construct( $args = array() ) {
    158181                $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Update Plugin') );
    159182                $args = wp_parse_args($args, $defaults);
     
    211234        public $error = false;
    212235
     236        /**
     237         *
     238         * @param array $args
     239         */
    213240        public function __construct($args = array()) {
    214241                $defaults = array( 'url' => '', 'nonce' => '' );
     
    257284                // Nothing, This will be displayed within a iframe.
    258285        }
     286
     287        /**
     288         *
     289         * @param string|WP_Error $error
     290         */
    259291        public function error($error) {
    260292                if ( is_string($error) && isset( $this->upgrader->strings[$error] ) )
     
    282314        }
    283315
     316        /**
     317         *
     318         * @param string $title
     319         */
    284320        public function before($title = '') {
    285321                $this->in_loop = true;
     
    290326        }
    291327
     328        /**
     329         *
     330         * @param string $title
     331         */
    292332        public function after($title = '') {
    293333                echo '</p></div>';
     
    329369        }
    330370
     371        /**
     372         *
     373         * @param string $title
     374         */
    331375        public function before($title = '') {
    332376                parent::before($this->plugin_info['Title']);
    333377        }
    334378
     379        /**
     380         *
     381         * @param string $title
     382         */
    335383        public function after($title = '') {
    336384                parent::after($this->plugin_info['Title']);
     
    369417        }
    370418
     419        /**
     420         *
     421         * @param string $title
     422         */
    371423        public function before($title = '') {
    372424                parent::before( $this->theme_info->display('Name') );
    373425        }
    374426
     427        /**
     428         *
     429         * @param string $title
     430         */
    375431        public function after($title = '') {
    376432                parent::after( $this->theme_info->display('Name') );
     
    413469        public $type;
    414470
     471        /**
     472         *
     473         * @param array $args
     474         */
    415475        public function __construct($args = array()) {
    416476                $defaults = array( 'type' => 'web', 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => '' );
     
    489549        public $type;
    490550
     551        /**
     552         *
     553         * @param array $args
     554         */
    491555        public function __construct($args = array()) {
    492556                $defaults = array( 'type' => 'web', 'url' => '', 'theme' => '', 'nonce' => '', 'title' => '' );
     
    573637        public $theme = '';
    574638
     639        /**
     640         *
     641         * @param array $args
     642         */
    575643        public function __construct($args = array()) {
    576644                $defaults = array( 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Update Theme') );
     
    650718        public $display_footer_actions = true;
    651719
     720        /**
     721         *
     722         * @param array $args
     723         */
    652724        public function __construct( $args = array() ) {
    653725                $defaults = array( 'url' => '', 'nonce' => '', 'title' => __( 'Update Translations' ), 'skip_header_footer' => false );
     
    669741        }
    670742
     743        /**
     744         *
     745         * @param string|WP_Error $error
     746         */
    671747        public function error( $error ) {
    672748                echo '<div class="lp-error">';
     
    711787        protected $messages = array();
    712788
     789        /**
     790         *
     791         * @param bool   $error
     792         * @param string $context
     793         * @param bool   $allow_relaxed_file_ownership
     794         * @return bool
     795         */
    713796        public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) {
    714797                if ( $context ) {
Note: See TracChangeset for help on using the changeset viewer.