Ticket #41756: 41756.patch
File 41756.patch, 10.9 KB (added by , 6 years ago) |
---|
-
src/wp-admin/includes/class-bulk-theme-upgrader-skin.php
55 55 * 56 56 * @since 3.0.0 57 57 * 58 * @param array$update_actions Array of theme action links.59 * @param array$theme_info Array of information for the last-updated theme.58 * @param string[] $update_actions Array of theme action links. 59 * @param string[] $theme_info Array of information for the last-updated theme. 60 60 */ 61 61 $update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info ); 62 62 -
src/wp-admin/includes/class-walker-nav-menu-edit.php
24 24 * 25 25 * @param string $output Passed by reference. 26 26 * @param int $depth Depth of menu item. Used for padding. 27 * @param array$args Not used.27 * @param string[] $args Not used. 28 28 */ 29 29 public function start_lvl( &$output, $depth = 0, $args = array() ) {} 30 30 … … 37 37 * 38 38 * @param string $output Passed by reference. 39 39 * @param int $depth Depth of menu item. Used for padding. 40 * @param array$args Not used.40 * @param string[] $args Not used. 41 41 */ 42 42 public function end_lvl( &$output, $depth = 0, $args = array() ) {} 43 43 … … 52 52 * @param string $output Used to append additional content (passed by reference). 53 53 * @param object $item Menu item data object. 54 54 * @param int $depth Depth of menu item. Used for padding. 55 * @param array$args Not used.55 * @param string[] $args Not used. 56 56 * @param int $id Not used. 57 57 */ 58 58 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { -
src/wp-admin/includes/class-wp-upgrader-skin.php
29 29 public $options = array(); 30 30 31 31 /** 32 * @param array$args32 * @param string[] $args 33 33 */ 34 34 public function __construct( $args = array() ) { 35 35 $defaults = array( -
src/wp-admin/includes/file.php
124 124 * 125 125 * @param string $folder Optional. Full path to folder. Default empty. 126 126 * @param int $levels Optional. Levels of folders to follow, Default 100 (PHP Loop limit). 127 * @param array$exclusions Optional. List of folders and files to skip.127 * @param string[] $exclusions Optional. List of folders and files to skip. 128 128 * @return bool|array False on failure, Else array of files 129 129 */ 130 130 function list_files( $folder = '', $levels = 100, $exclusions = array() ) { … … 222 222 * @since 4.9.0 Adds $plugin param. 223 223 * 224 224 * @param string $plugin Plugin file. 225 * @param array$editable_extensions An array of editable plugin file extensions.225 * @param string[] $editable_extensions An array of editable plugin file extensions. 226 226 */ 227 227 $editable_extensions = (array) apply_filters( 'editable_extensions', $editable_extensions, $plugin ); 228 228 … … 277 277 * 278 278 * @since 4.4.0 279 279 * 280 * @param array$default_types List of file types. Default types include 'php' and 'css'.280 * @param string[] $default_types List of file types. Default types include 'php' and 'css'. 281 281 * @param WP_Theme $theme The current Theme object. 282 282 */ 283 283 $file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme ); … … 337 337 * 338 338 * @since 4.9.0 339 339 * 340 * @param array$args {340 * @param string[] $args { 341 341 * Args. Note that all of the arg values are already unslashed. They are, however, 342 342 * coming straight from $_POST and are not validated or sanitized in any way. 343 343 * … … 663 663 * @since 1.5.0 664 664 * 665 665 * @param string $file File the user is attempting to edit. 666 * @param array$allowed_files Optional. Array of allowed files to edit, $file must match an entry exactly.666 * @param string[] $allowed_files Optional. Array of allowed files to edit, $file must match an entry exactly. 667 667 * @return string|null 668 668 */ 669 669 function validate_file_to_edit( $file, $allowed_files = array() ) { … … 694 694 * 695 695 * @see wp_handle_upload_error 696 696 * 697 * @param array$file Reference to a single element of $_FILES. Call the function once for each uploaded file.698 * @param array|false $overrides An associative array of names => values to override default variables. Default false.697 * @param string[] $file Reference to a single element of $_FILES. Call the function once for each uploaded file. 698 * @param string[]|false $overrides An associative array of names => values to override default variables. Default false. 699 699 * @param string $time Time formatted in 'yyyy/mm'. 700 700 * @param string $action Expected value for $_POST['action']. 701 * @return arrayOn success, returns an associative array of file attributes. On failure, returns701 * @return string[] On success, returns an associative array of file attributes. On failure, returns 702 702 * $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ). 703 703 */ 704 704 function _wp_handle_upload( &$file, $overrides, $time, $action ) { … … 717 717 * @since 2.9.0 as 'wp_handle_upload_prefilter'. 718 718 * @since 4.0.0 Converted to a dynamic hook with `$action`. 719 719 * 720 * @param array$file An array of data for a single file.720 * @param string[] $file An array of data for a single file. 721 721 */ 722 722 $file = apply_filters( "{$action}_prefilter", $file ); 723 723 -
src/wp-admin/includes/nav-menu.php
18 18 * 19 19 * @since 3.0.0 20 20 * 21 * @param array$request The unsanitized request values.21 * @param string[] $request The unsanitized request values. 22 22 */ 23 23 function _wp_ajax_menu_quick_search( $request = array() ) { 24 24 $args = array(); … … 318 318 * @global int|string $nav_menu_selected_id 319 319 * 320 320 * @param string $object Not used. 321 * @param array$box {321 * @param string[] $box { 322 322 * Post type menu item meta box arguments. 323 323 * 324 324 * @type string $id Meta box 'id' attribute. … … 435 435 </li> 436 436 </ul><!-- .posttype-tabs --> 437 437 438 <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-most-recent" class="tabs-panel 438 <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-most-recent" class="tabs-panel 439 439 <?php 440 440 echo ( 'most-recent' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); 441 441 ?> … … 461 461 * @since 4.3.0 462 462 * @since 4.9.0 Added the `$recent_args` parameter. 463 463 * 464 * @param array$most_recent An array of post objects being listed.465 * @param array$args An array of WP_Query arguments for the meta box.466 * @param array$box Arguments passed to wp_nav_menu_item_post_type_meta_box().467 * @param array$recent_args An array of WP_Query arguments for 'Most Recent' tab.464 * @param string[] $most_recent An array of post objects being listed. 465 * @param string[] $args An array of WP_Query arguments for the meta box. 466 * @param string[] $box Arguments passed to wp_nav_menu_item_post_type_meta_box(). 467 * @param string[] $recent_args An array of WP_Query arguments for 'Most Recent' tab. 468 468 */ 469 469 $most_recent = apply_filters( "nav_menu_items_{$post_type_name}_recent", $most_recent, $args, $box, $recent_args ); 470 470 … … 473 473 </ul> 474 474 </div><!-- /.tabs-panel --> 475 475 476 <div class="tabs-panel 476 <div class="tabs-panel 477 477 <?php 478 478 echo ( 'search' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); 479 479 ?> … … 515 515 </ul> 516 516 </div><!-- /.tabs-panel --> 517 517 518 <div id="<?php echo $post_type_name; ?>-all" class="tabs-panel tabs-panel-view-all 518 <div id="<?php echo $post_type_name; ?>-all" class="tabs-panel tabs-panel-view-all 519 519 <?php 520 520 echo ( 'all' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); 521 521 ?> … … 589 589 * 590 590 * @see WP_Query::query() 591 591 * 592 * @param array$posts The posts for the current post type.593 * @param array$args An array of WP_Query arguments.594 * @param WP_Post_Type $post_type The current post type object for this menu item meta box.592 * @param string[] $posts The posts for the current post type. 593 * @param string[] $args An array of WP_Query arguments. 594 * @param string[] WP_Post_Type $post_type The current post type object for this menu item meta box. 595 595 */ 596 596 $posts = apply_filters( "nav_menu_items_{$post_type_name}", $posts, $args, $post_type ); 597 597 … … 646 646 * 647 647 * @global int|string $nav_menu_selected_id 648 648 * 649 * @param string $object Not used.650 * @param array$box {649 * @param string[] $object Not used. 650 * @param string[] $box { 651 651 * Taxonomy menu item meta box arguments. 652 652 * 653 653 * @type string $id Meta box 'id' attribute. … … 770 770 </li> 771 771 </ul><!-- .taxonomy-tabs --> 772 772 773 <div id="tabs-panel-<?php echo $taxonomy_name; ?>-pop" class="tabs-panel 773 <div id="tabs-panel-<?php echo $taxonomy_name; ?>-pop" class="tabs-panel 774 774 <?php 775 775 echo ( 'most-used' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); 776 776 ?> … … 791 791 </ul> 792 792 </div><!-- /.tabs-panel --> 793 793 794 <div id="tabs-panel-<?php echo $taxonomy_name; ?>-all" class="tabs-panel tabs-panel-view-all 794 <div id="tabs-panel-<?php echo $taxonomy_name; ?>-all" class="tabs-panel tabs-panel-view-all 795 795 <?php 796 796 echo ( 'all' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); 797 797 ?> … … 814 814 <?php endif; ?> 815 815 </div><!-- /.tabs-panel --> 816 816 817 <div class="tabs-panel 817 <div class="tabs-panel 818 818 <?php 819 819 echo ( 'search' == $current_tab ? 'tabs-panel-active' : 'tabs-panel-inactive' ); 820 820 ?> … … 890 890 * @since 3.0.0 891 891 * 892 892 * @param int $menu_id The menu ID for which to save this item. $menu_id of 0 makes a draft, orphaned menu item. 893 * @param array$menu_data The unsanitized posted menu item data.894 * @return arrayThe database IDs of the items saved893 * @param string[] $menu_data The unsanitized posted menu item data. 894 * @return int[] The database IDs of the items saved 895 895 */ 896 896 function wp_save_nav_menu_items( $menu_id = 0, $menu_data = array() ) { 897 897 $menu_id = (int) $menu_id;