Changeset 32655 for trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
- Timestamp:
- 05/29/2015 09:16:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
r31506 r32655 23 23 public $options = array(); 24 24 25 /** 26 * 27 * @param array $args 28 */ 25 29 public function __construct($args = array()) { 26 30 $defaults = array( 'url' => '', 'nonce' => '', 'title' => '', 'context' => false ); … … 44 48 } 45 49 50 /** 51 * 52 * @param bool $error 53 * @param string $context 54 * @param bool $allow_relaxed_file_ownership 55 * @return type 56 */ 46 57 public function request_filesystem_credentials( $error = false, $context = false, $allow_relaxed_file_ownership = false ) { 47 58 $url = $this->options['url']; … … 74 85 } 75 86 87 /** 88 * 89 * @param string|WP_Error $errors 90 */ 76 91 public function error($errors) { 77 92 if ( ! $this->done_header ) … … 89 104 } 90 105 106 /** 107 * 108 * @param string $string 109 */ 91 110 public function feedback($string) { 92 111 if ( isset( $this->upgrader->strings[$string] ) ) … … 155 174 public $plugin_network_active = false; 156 175 157 public function __construct($args = array()) { 176 /** 177 * 178 * @param array $args 179 */ 180 public function __construct( $args = array() ) { 158 181 $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Update Plugin') ); 159 182 $args = wp_parse_args($args, $defaults); … … 211 234 public $error = false; 212 235 236 /** 237 * 238 * @param array $args 239 */ 213 240 public function __construct($args = array()) { 214 241 $defaults = array( 'url' => '', 'nonce' => '' ); … … 257 284 // Nothing, This will be displayed within a iframe. 258 285 } 286 287 /** 288 * 289 * @param string|WP_Error $error 290 */ 259 291 public function error($error) { 260 292 if ( is_string($error) && isset( $this->upgrader->strings[$error] ) ) … … 282 314 } 283 315 316 /** 317 * 318 * @param string $title 319 */ 284 320 public function before($title = '') { 285 321 $this->in_loop = true; … … 290 326 } 291 327 328 /** 329 * 330 * @param string $title 331 */ 292 332 public function after($title = '') { 293 333 echo '</p></div>'; … … 329 369 } 330 370 371 /** 372 * 373 * @param string $title 374 */ 331 375 public function before($title = '') { 332 376 parent::before($this->plugin_info['Title']); 333 377 } 334 378 379 /** 380 * 381 * @param string $title 382 */ 335 383 public function after($title = '') { 336 384 parent::after($this->plugin_info['Title']); … … 369 417 } 370 418 419 /** 420 * 421 * @param string $title 422 */ 371 423 public function before($title = '') { 372 424 parent::before( $this->theme_info->display('Name') ); 373 425 } 374 426 427 /** 428 * 429 * @param string $title 430 */ 375 431 public function after($title = '') { 376 432 parent::after( $this->theme_info->display('Name') ); … … 413 469 public $type; 414 470 471 /** 472 * 473 * @param array $args 474 */ 415 475 public function __construct($args = array()) { 416 476 $defaults = array( 'type' => 'web', 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => '' ); … … 489 549 public $type; 490 550 551 /** 552 * 553 * @param array $args 554 */ 491 555 public function __construct($args = array()) { 492 556 $defaults = array( 'type' => 'web', 'url' => '', 'theme' => '', 'nonce' => '', 'title' => '' ); … … 573 637 public $theme = ''; 574 638 639 /** 640 * 641 * @param array $args 642 */ 575 643 public function __construct($args = array()) { 576 644 $defaults = array( 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Update Theme') ); … … 650 718 public $display_footer_actions = true; 651 719 720 /** 721 * 722 * @param array $args 723 */ 652 724 public function __construct( $args = array() ) { 653 725 $defaults = array( 'url' => '', 'nonce' => '', 'title' => __( 'Update Translations' ), 'skip_header_footer' => false ); … … 669 741 } 670 742 743 /** 744 * 745 * @param string|WP_Error $error 746 */ 671 747 public function error( $error ) { 672 748 echo '<div class="lp-error">'; … … 711 787 protected $messages = array(); 712 788 789 /** 790 * 791 * @param bool $error 792 * @param string $context 793 * @param bool $allow_relaxed_file_ownership 794 * @return bool 795 */ 713 796 public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) { 714 797 if ( $context ) {
Note: See TracChangeset
for help on using the changeset viewer.