Changeset 32655
- Timestamp:
- 05/29/2015 09:16:59 PM (10 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 9 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 ) { -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r32653 r32655 1064 1064 * 1065 1065 * @global WP_Filesystem_Base $wp_filesystem Subclass 1066 * 1067 * @param bool|WP_Error $removed 1068 * @param string $local_destination 1069 * @param string $remote_destination 1070 * @param array $plugin 1071 * @return WP_Error|bool 1066 1072 */ 1067 1073 public function delete_old_plugin($removed, $local_destination, $remote_destination, $plugin) { … … 1167 1173 * 1168 1174 * @since 3.4.0 1175 * 1176 * @param bool $install_result 1177 * @param array $hook_extra 1178 * @param array $child_result 1179 * @return type 1169 1180 */ 1170 1181 public function check_parent_theme_filter( $install_result, $hook_extra, $child_result ) { … … 1237 1248 * 1238 1249 * @param array $actions Preview actions. 1250 * @return array 1239 1251 */ 1240 1252 public function hide_activate_preview_actions( $actions ) { … … 1525 1537 * 1526 1538 * @since 2.8.0 1539 * 1540 * @param bool|WP_Error $return 1541 * @param array $theme 1542 * @return bool|WP_Error 1527 1543 */ 1528 1544 public function current_before($return, $theme) { 1529 1530 1545 if ( is_wp_error($return) ) 1531 1546 return $return; … … 1549 1564 * 1550 1565 * @since 2.8.0 1566 * 1567 * @param bool|WP_Error $return 1568 * @param array $theme 1569 * @return bool|WP_Error 1551 1570 */ 1552 1571 public function current_after($return, $theme) { … … 1581 1600 * 1582 1601 * @global WP_Filesystem_Base $wp_filesystem Subclass 1602 * 1603 * @param bool $removed 1604 * @param string $local_destination 1605 * @param string $remote_destination 1606 * @param array $theme 1607 * @return bool 1583 1608 */ 1584 1609 public function delete_old_theme( $removed, $local_destination, $remote_destination, $theme ) { … … 1659 1684 * 1660 1685 * @static 1686 * 1687 * @param false|WP_Upgrader $upgrader 1661 1688 */ 1662 1689 public static function async_upgrade( $upgrader = false ) { … … 1881 1908 * 1882 1909 * @global WP_Filesystem_Base $wp_filesystem Subclass 1910 * 1911 * @param string|WP_Error $source 1912 * @param string $remote_source 1883 1913 */ 1884 1914 public function check_package( $source, $remote_source ) { … … 1912 1942 * @since 3.7.0 1913 1943 * 1914 * @param object The data for an update.1944 * @param object $update The data for an update. 1915 1945 * @return string The name of the item being updated. 1916 1946 */ … … 2621 2651 * @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'. 2622 2652 * @param object $item The update offer. 2653 * 2654 * @return null|WP_Error 2623 2655 */ 2624 2656 public function update( $type, $item ) { … … 2859 2891 * @global string $wp_version 2860 2892 * 2861 * @param object $update_result The result of the core update. Includes the update offer and result.2893 * @param object|WP_Error $update_result The result of the core update. Includes the update offer and result. 2862 2894 */ 2863 2895 protected function after_core_update( $update_result ) { -
trunk/src/wp-admin/includes/dashboard.php
r32653 r32655 169 169 } 170 170 171 /** 172 * 173 * @param type $dashboard 174 * @param type $meta_box 175 */ 171 176 function _wp_dashboard_control_callback( $dashboard, $meta_box ) { 172 177 echo '<form method="post" class="dashboard-widget-control-form">'; … … 496 501 * 497 502 * @since 2.7.0 503 * 504 * @param array $drafts 498 505 */ 499 506 function wp_dashboard_recent_drafts( $drafts = false ) { -
trunk/src/wp-admin/includes/export.php
r32642 r32655 316 316 } 317 317 318 /** 319 * 320 * @param bool $return_me 321 * @param string $meta_key 322 * @return boolean 323 */ 318 324 function wxr_filter_postmeta( $return_me, $meta_key ) { 319 325 if ( '_edit_lock' == $meta_key ) -
trunk/src/wp-admin/includes/import.php
r32642 r32655 46 46 * @global array $wp_importers 47 47 * 48 * @param string $idImporter tag. Used to uniquely identify importer.49 * @param string $nameImporter name and title.50 * @param string $description Importer description.51 * @param callback $callback Callback to run.48 * @param string $id Importer tag. Used to uniquely identify importer. 49 * @param string $name Importer name and title. 50 * @param string $description Importer description. 51 * @param callback $callback Callback to run. 52 52 * @return WP_Error Returns WP_Error when $callback is WP_Error. 53 53 */ -
trunk/src/wp-admin/includes/menu.php
r32642 r32655 195 195 unset($id, $data); 196 196 197 /** 198 * 199 * @param string $add 200 * @param string $class 201 * @return string 202 */ 197 203 function add_cssclass($add, $class) { 198 204 $class = empty($class) ? $add : $class .= ' ' . $add; … … 200 206 } 201 207 208 /** 209 * 210 * @param array $menu 211 * @return array 212 */ 202 213 function add_menu_classes($menu) { 203 204 214 $first = $lastorder = false; 205 215 $i = 0; -
trunk/src/wp-admin/includes/nav-menu.php
r32653 r32655 238 238 */ 239 239 class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { 240 /** 241 * 242 * @param array $fields 243 */ 240 244 public function __construct( $fields = false ) { 241 245 if ( $fields ) { -
trunk/src/wp-admin/includes/plugin-install.php
r32653 r32655 164 164 * 165 165 * @since 2.7.0 166 * 167 * @param bool $type_selector 166 168 */ 167 169 function install_search_form( $type_selector = true ) { … … 262 264 * 263 265 * @since 3.0.0 266 * 267 * @param array|object $api 268 * @param bool $loop 269 * @return type 264 270 */ 265 271 function install_plugin_install_status($api, $loop = false) { -
trunk/src/wp-admin/includes/screen.php
r32650 r32655 186 186 * 187 187 * @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen, 188 * or an existing screen object.188 * or an existing screen object. 189 189 */ 190 190 function set_current_screen( $hook_name = '' ) { … … 388 388 * 389 389 * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen. 390 * Defaults to the current $hook_suffix global.390 * Defaults to the current $hook_suffix global. 391 391 * @return WP_Screen Screen object. 392 392 */ 393 393 public static function get( $hook_name = '' ) { 394 395 394 if ( $hook_name instanceof WP_Screen ) { 396 395 return $hook_name; … … 583 582 * 584 583 * @param string $admin The admin to check against (network | user | site). 585 * If empty any of the three admins will result in true. 586 * @return boolean True if the screen is in the indicated admin, false otherwise. 587 * 584 * If empty any of the three admins will result in true. 585 * @return bool True if the screen is in the indicated admin, false otherwise. 588 586 */ 589 587 public function in_admin( $admin = null ) {
Note: See TracChangeset
for help on using the changeset viewer.