Changeset 42875
- Timestamp:
- 03/25/2018 06:09:56 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r42832 r42875 80 80 * @since 3.1.0 81 81 * 82 * @param array $dashboard_widgets An array of dashboard widgets.82 * @param string[] $dashboard_widgets An array of dashboard widget IDs. 83 83 */ 84 84 $dashboard_widgets = apply_filters( 'wp_network_dashboard_widgets', array() ); … … 97 97 * @since 3.1.0 98 98 * 99 * @param array $dashboard_widgets An array of dashboard widgets.99 * @param string[] $dashboard_widgets An array of dashboard widget IDs. 100 100 */ 101 101 $dashboard_widgets = apply_filters( 'wp_user_dashboard_widgets', array() ); … … 114 114 * @since 2.5.0 115 115 * 116 * @param array $dashboard_widgets An array of dashboard widgets.116 * @param string[] $dashboard_widgets An array of dashboard widget IDs. 117 117 */ 118 118 $dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() ); … … 315 315 * @since 3.8.0 316 316 * 317 * @param array$items Array of extra 'At a Glance' widget items.317 * @param string[] $items Array of extra 'At a Glance' widget items. 318 318 */ 319 319 $elements = apply_filters( 'dashboard_glance_items', array() ); … … 556 556 * @since 2.7.0 557 557 * 558 * @param array $drafts558 * @param WP_Post[] $drafts Optional. Array of posts to display. Default false. 559 559 */ 560 560 function wp_dashboard_recent_drafts( $drafts = false ) { … … 672 672 * @since 2.6.0 673 673 * 674 * @param array$actions An array of comment actions. Default actions include:674 * @param string[] $actions An array of comment actions. Default actions include: 675 675 * 'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam', 676 676 * 'Delete', and 'Trash'. -
trunk/src/wp-admin/includes/export.php
r42343 r42875 341 341 * @global wpdb $wpdb WordPress database abstraction object. 342 342 * 343 * @param array $post_ids Array of post IDs to filter the query by. Optional.343 * @param int[] $post_ids Optional. Array of post IDs to filter the query by. 344 344 */ 345 345 function wxr_authors_list( array $post_ids = null ) { -
trunk/src/wp-admin/includes/media.php
r42827 r42875 2610 2610 * @since 3.1.0 2611 2611 * 2612 * @param array$type_links An array of list items containing mime type link HTML.2612 * @param string[] $type_links An array of list items containing mime type link HTML. 2613 2613 */ 2614 2614 echo implode( ' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . '</li>'; -
trunk/src/wp-admin/includes/misc.php
r42830 r42875 557 557 * @since 2.8.0 558 558 * 559 * @param array $ignore_functions Functions and classes to be ignored.559 * @param string[] $ignore_functions Array of names of functions and classes to be ignored. 560 560 */ 561 561 $ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions ); -
trunk/src/wp-admin/includes/ms.php
r42836 r42875 127 127 * @since MU (3.0.0) 128 128 * 129 * @param array $tables The site tables to be dropped.130 * @param int $blog_id The ID of the site to drop tables for.129 * @param string[] $tables Array of names of the site tables to be dropped. 130 * @param int $blog_id The ID of the site to drop tables for. 131 131 */ 132 132 $drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $blog_id ); … … 666 666 * @since MU (3.0.0) 667 667 * 668 * @param array $lang_codes Key/value pairof language codes where key is the short version.669 * @param string $code A two-letter designation of the language.668 * @param string[] $lang_codes Array of key/value pairs of language codes where key is the short version. 669 * @param string $code A two-letter designation of the language. 670 670 */ 671 671 $lang_codes = apply_filters( 'lang_codes', $lang_codes, $code ); … … 761 761 * @since 3.0.0 762 762 * 763 * @param array$lang_files Optional. An array of the language files. Default empty array.764 * @param string $current Optional. The current language code. Default empty.763 * @param string[] $lang_files Optional. An array of the language files. Default empty array. 764 * @param string $current Optional. The current language code. Default empty. 765 765 */ 766 766 function mu_dropdown_languages( $lang_files = array(), $current = '' ) { … … 797 797 * @since MU (3.0.0) 798 798 * 799 * @param array $output HTML output ofthe dropdown.800 * @param array $lang_files Available language files.801 * @param string $currentThe current language code.799 * @param string[] $output Array of HTML output for the dropdown. 800 * @param string[] $lang_files Array of available language files. 801 * @param string $current The current language code. 802 802 */ 803 803 $output = apply_filters( 'mu_dropdown_languages', $output, $lang_files, $current ); -
trunk/src/wp-admin/includes/plugin.php
r42843 r42875 211 211 * @since 4.9.0 212 212 * 213 * @param array$exclusions Array of excluded directories and files.213 * @param string[] $exclusions Array of excluded directories and files. 214 214 */ 215 215 $exclusions = (array) apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) ); -
trunk/src/wp-admin/includes/post.php
r42343 r42875 1268 1268 * @since 3.2.0 1269 1269 * 1270 * @param array$classes An array of postbox classes.1270 * @param string[] $classes An array of postbox classes. 1271 1271 */ 1272 1272 $classes = apply_filters( "postbox_classes_{$page}_{$id}", $classes ); -
trunk/src/wp-admin/includes/revision.php
r42343 r42875 131 131 * @since 4.1.0 132 132 * 133 * @param array $return Revision UI fields. Each item is an array of id, nameand diff.133 * @param array[] $return Array of revision UI fields. Each item is an array of id, name, and diff. 134 134 * @param WP_Post $compare_from The revision post to compare from. 135 135 * @param WP_Post $compare_to The revision post to compare to. -
trunk/src/wp-admin/includes/taxonomy.php
r42343 r42875 71 71 * @since 2.0.0 72 72 * 73 * @param array $categories List of categories to create.74 * @param int $post_id Optional. The post ID. Default empty.73 * @param string[] $categories Array of category names to create. 74 * @param int $post_id Optional. The post ID. Default empty. 75 75 * @return array List of categories to create for the given post. 76 76 */ -
trunk/src/wp-admin/includes/template.php
r42827 r42875 30 30 * @param int $descendants_and_self Optional. ID of the category to output along with its descendants. 31 31 * Default 0. 32 * @param array $selected_cats Optional. List of categories to mark as checked. Default false.33 * @param array $popular_cats Optional. List of categories to receive the "popular-category" class.32 * @param int[] $selected_cats Optional. Array of category IDs to mark as checked. Default false. 33 * @param int[] $popular_cats Optional. Array of category IDs to receive the "popular-category" class. 34 34 * Default false. 35 35 * @param object $walker Optional. Walker object to use to build the output. … … 65 65 * @type int $descendants_and_self ID of the category to output along with its descendants. 66 66 * Default 0. 67 * @type array $selected_cats List of categories to mark as checked. Default false.68 * @type array $popular_cats List of categories to receive the "popular-category" class.67 * @type int[] $selected_cats Array of category IDs to mark as checked. Default false. 68 * @type int[] $popular_cats Array of category IDs to receive the "popular-category" class. 69 69 * Default false. 70 70 * @type object $walker Walker object to use to build the output. … … 1898 1898 * @since 3.6.0 Added the `$post` parameter. 1899 1899 * 1900 * @param array$post_states An array of post display states.1901 * @param WP_Post $post The current post object.1900 * @param string[] $post_states An array of post display states. 1901 * @param WP_Post $post The current post object. 1902 1902 */ 1903 1903 $post_states = apply_filters( 'display_post_states', $post_states, $post ); … … 1974 1974 * @since 4.8.0 Added the `$post` parameter. 1975 1975 * 1976 * @param array$media_states An array of media states. Default 'Header Image',1977 * 'Background Image', 'Site Icon', 'Logo'.1978 * @param WP_Post $post The current attachment object.1976 * @param string[] $media_states An array of media states. Default 'Header Image', 1977 * 'Background Image', 'Site Icon', 'Logo'. 1978 * @param WP_Post $post The current attachment object. 1979 1979 */ 1980 1980 $media_states = apply_filters( 'display_media_states', $media_states, $post ); -
trunk/src/wp-admin/includes/theme.php
r42778 r42875 570 570 * @since 3.8.0 571 571 * 572 * @param array $themes Optional. Array of WP_Theme objects to prepare.573 * Defaults to all allowed themes.572 * @param WP_Theme[] $themes Optional. Array of theme objects to prepare. 573 * Defaults to all allowed themes. 574 574 * 575 575 * @return array An associative array of theme data, sorted by name. … … 586 586 * @since 4.2.0 587 587 * 588 * @param array $prepared_themes An associative array of theme data. Default empty array.589 * @param null|array $themes An array of WP_Theme objects to prepare, if any.590 * @param string $current_theme The current theme slug.588 * @param array $prepared_themes An associative array of theme data. Default empty array. 589 * @param WP_Theme[]|null $themes An array of theme objects to prepare, if any. 590 * @param string $current_theme The current theme slug. 591 591 */ 592 592 $prepared_themes = (array) apply_filters( 'pre_prepare_themes_for_js', array(), $themes, $current_theme ); -
trunk/src/wp-admin/includes/upgrade.php
r42836 r42875 2394 2394 * @global wpdb $wpdb 2395 2395 * 2396 * @param string |array$queries Optional. The query to run. Can be multiple queries2397 * in an array, or a string of queries separated by2398 * semicolons. Default empty.2399 * @param bool $execute Optional. Whether or not to execute the query right away.2400 * Default true.2396 * @param string[]|string $queries Optional. The query to run. Can be multiple queries 2397 * in an array, or a string of queries separated by 2398 * semicolons. Default empty string. 2399 * @param bool $execute Optional. Whether or not to execute the query right away. 2400 * Default true. 2401 2401 * @return array Strings containing the results of the various update queries. 2402 2402 */ … … 2419 2419 * @since 3.3.0 2420 2420 * 2421 * @param array$queries An array of dbDelta SQL queries.2421 * @param string[] $queries An array of dbDelta SQL queries. 2422 2422 */ 2423 2423 $queries = apply_filters( 'dbdelta_queries', $queries ); … … 2450 2450 * @since 3.3.0 2451 2451 * 2452 * @param array$cqueries An array of dbDelta create SQL queries.2452 * @param string[] $cqueries An array of dbDelta create SQL queries. 2453 2453 */ 2454 2454 $cqueries = apply_filters( 'dbdelta_create_queries', $cqueries ); … … 2461 2461 * @since 3.3.0 2462 2462 * 2463 * @param array$iqueries An array of dbDelta insert or update SQL queries.2463 * @param string[] $iqueries An array of dbDelta insert or update SQL queries. 2464 2464 */ 2465 2465 $iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries ); -
trunk/src/wp-admin/includes/user.php
r42855 r42875 255 255 * @since 2.8.0 256 256 * 257 * @return array 257 * @return array[] Array of arrays containing role information. 258 258 */ 259 259 function get_editable_roles() { … … 265 265 * @since 2.8.0 266 266 * 267 * @param array $all_roles List of roles.267 * @param array[] $all_roles Array of arrays containing role information. 268 268 */ 269 269 $editable_roles = apply_filters( 'editable_roles', $all_roles ); … … 378 378 * @since 3.4.0 379 379 * 380 * @param array $post_types_to_delete Post types to delete.381 * @param int $id User ID.380 * @param string[] $post_types_to_delete Array of post types to delete. 381 * @param int $id User ID. 382 382 */ 383 383 $post_types_to_delete = apply_filters( 'post_types_to_delete_with_user', $post_types_to_delete, $id ); -
trunk/src/wp-admin/maint/repair.php
r42827 r42875 90 90 * @since 3.0.0 91 91 * 92 * @param array$tables Array of prefixed table names to be repaired.92 * @param string[] $tables Array of prefixed table names to be repaired. 93 93 */ 94 94 $tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) ); -
trunk/src/wp-admin/network/settings.php
r42827 r42875 451 451 * @since MU (3.0.0) 452 452 * 453 * @param array $admin_menus The menu items available.453 * @param string[] $admin_menus Associative array of the menu items available. 454 454 */ 455 455 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); -
trunk/src/wp-admin/options-discussion.php
r42400 r42875 269 269 * @since 2.6.0 270 270 * 271 * @param array $avatar_defaults Array of default avatars.271 * @param string[] $avatar_defaults Associative array of default avatars. 272 272 */ 273 273 $avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults ); -
trunk/src/wp-admin/options-general.php
r42606 r42875 325 325 * @since 4.0.0 Added ISO date standard YYYY-MM-DD format. 326 326 * 327 * @param array$default_date_formats Array of default date formats.327 * @param string[] $default_date_formats Array of default date formats. 328 328 */ 329 329 $date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y-m-d', 'm/d/Y', 'd/m/Y' ) ) ); … … 362 362 * @since 2.7.0 363 363 * 364 * @param array$default_time_formats Array of default time formats.364 * @param string[] $default_time_formats Array of default time formats. 365 365 */ 366 366 $time_formats = array_unique( apply_filters( 'time_formats', array( __( 'g:i a' ), 'g:i A', 'H:i' ) ) ); -
trunk/src/wp-admin/options-permalink.php
r42343 r42875 257 257 * @since 4.8.0 258 258 * 259 * @param array $available_tags A key => value pairof available permalink structure tags.259 * @param string[] $available_tags An array of key => value pairs of available permalink structure tags. 260 260 */ 261 261 $available_tags = apply_filters( 'available_permalink_structure_tags', $available_tags ); -
trunk/src/wp-admin/plugins.php
r42827 r42875 568 568 * @since 3.0.0 569 569 * 570 * @param array $plugins_all An array containingall installed plugins.570 * @param array[] $plugins_all An array of arrays containing information on all installed plugins. 571 571 */ 572 572 do_action( 'pre_current_active_plugins', $plugins['all'] ); -
trunk/src/wp-admin/theme-install.php
r42447 r42875 144 144 * @since 2.8.0 145 145 * 146 * @param array $tabs The tabs shown on the Add Themes screen. Default is 'upload'.146 * @param string[] $tabs Associative array of the tabs shown on the Add Themes screen. Default is 'upload'. 147 147 */ 148 148 $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) ); -
trunk/src/wp-admin/users.php
r42719 r42875 318 318 * 319 319 * @param WP_User $current_user WP_User object for the current user. 320 * @param array$userids Array of IDs for users being deleted.320 * @param int[] $userids Array of IDs for users being deleted. 321 321 */ 322 322 do_action( 'delete_user_form', $current_user, $userids ); -
trunk/src/wp-includes/capabilities.php
r42832 r42875 325 325 * @since 4.6.0 326 326 * 327 * @param bool $allowed Whether the user can add the object meta. Default false.328 * @param string $meta_key The meta key.329 * @param int $object_id Object ID.330 * @param int $user_id User ID.331 * @param string $cap Capability name.332 * @param array $caps Usercapabilities.327 * @param bool $allowed Whether the user can add the object meta. Default false. 328 * @param string $meta_key The meta key. 329 * @param int $object_id Object ID. 330 * @param int $user_id User ID. 331 * @param string $cap Capability name. 332 * @param string[] $caps Array of the user's capabilities. 333 333 */ 334 334 $allowed = apply_filters( "auth_{$object_type}_meta_{$meta_key}", false, $meta_key, $object_id, $user_id, $cap, $caps ); … … 346 346 * @since 4.7.0 347 347 * 348 * @param bool $allowed Whether the user can add the object meta. Default false.349 * @param string $meta_key The meta key.350 * @param int $object_id Object ID.351 * @param int $user_id User ID.352 * @param string $cap Capability name.353 * @param array $caps Usercapabilities.348 * @param bool $allowed Whether the user can add the object meta. Default false. 349 * @param string $meta_key The meta key. 350 * @param int $object_id Object ID. 351 * @param int $user_id User ID. 352 * @param string $cap Capability name. 353 * @param string[] $caps Array of the user's capabilities. 354 354 */ 355 355 $allowed = apply_filters( "auth_{$object_type}_{$sub_type}_meta_{$meta_key}", $allowed, $meta_key, $object_id, $user_id, $cap, $caps ); … … 573 573 * @since 2.8.0 574 574 * 575 * @param array $caps Returns the user's actualcapabilities.576 * @param string $cap Capability name.577 * @param int $user_id The user ID.578 * @param array $args Adds the context to the cap. Typically the object ID.575 * @param string[] $caps Array of the user's capabilities. 576 * @param string $cap Capability name. 577 * @param int $user_id The user ID. 578 * @param array $args Adds the context to the cap. Typically the object ID. 579 579 */ 580 580 return apply_filters( 'map_meta_cap', $caps, $cap, $user_id, $args ); … … 913 913 * @since 4.9.0 914 914 * 915 * @param array$allcaps An array of all the user's capabilities.916 * @return arrayFiltered array of the user's capabilities.915 * @param bool[] $allcaps An array of all the user's capabilities. 916 * @return bool[] Filtered array of the user's capabilities. 917 917 */ 918 918 function wp_maybe_grant_install_languages_cap( $allcaps ) { -
trunk/src/wp-includes/category-template.php
r42843 r42875 72 72 * 73 73 * @param int $id Optional, default to current post ID. The post ID. 74 * @return arrayArray of WP_Term objects, one for each category assigned to the post.74 * @return WP_Term[] Array of WP_Term objects, one for each category assigned to the post. 75 75 */ 76 76 function get_the_category( $id = false ) { … … 92 92 * @since 4.4.0 Added `$id` parameter. 93 93 * 94 * @param array$categories An array of categories to return for the post.95 * @param int 94 * @param WP_Term[] $categories An array of categories to return for the post. 95 * @param int|false $id ID of the post. 96 96 */ 97 97 return apply_filters( 'get_the_categories', $categories, $id ); … … 142 142 * @since 4.4.0 143 143 * 144 * @param array$categories An array of the post's categories.145 * @param int|bool $post_id ID of the post we're retrieving categories for. When `false`, we assume the146 * current post in the loop.144 * @param WP_Term[] $categories An array of the post's categories. 145 * @param int|bool $post_id ID of the post we're retrieving categories for. When `false`, we assume the 146 * current post in the loop. 147 147 */ 148 148 $categories = apply_filters( 'the_category_list', get_the_category( $post_id ), $post_id ); … … 763 763 * @since 4.8.0 Added the `show_count` argument. 764 764 * 765 * @param array$tags Array of WP_Term objects to generate the tag cloud for.765 * @param WP_Term[] $tags Array of WP_Term objects to generate the tag cloud for. 766 766 * @param string|array $args { 767 767 * Optional. Array or string of arguments for generating a tag cloud. … … 851 851 * @since 2.8.0 852 852 * 853 * @param array$tags Ordered array of terms.854 * @param array $args An array of tag cloud arguments.853 * @param WP_Term[] $tags Ordered array of terms. 854 * @param array $args An array of tag cloud arguments. 855 855 */ 856 856 $tags_sorted = apply_filters( 'tag_cloud_sort', $tags, $args ); … … 1005 1005 * or an array of tag links if the 'format' argument 1006 1006 * equals 'array'. 1007 * @param array$tags An array of terms used in the tag cloud.1007 * @param WP_Term[] $tags An array of terms used in the tag cloud. 1008 1008 * @param array $args An array of wp_generate_tag_cloud() arguments. 1009 1009 */ … … 1123 1123 * @see get_the_terms() 1124 1124 * 1125 * @param array$terms An array of tags for the given post.1125 * @param WP_Term[] $terms An array of tags for the given post. 1126 1126 */ 1127 1127 return apply_filters( 'get_the_tags', get_the_terms( $id, 'post_tag' ) ); … … 1214 1214 * @since 2.5.0 1215 1215 * 1216 * @param int| object $postPost ID or object.1217 * @param string $taxonomy Taxonomy name.1218 * @return array|false|WP_Error Array of WP_Term objects on success, false if there are no terms1219 * or the post does not exist, WP_Error on failure.1216 * @param int|WP_Post $post Post ID or object. 1217 * @param string $taxonomy Taxonomy name. 1218 * @return WP_Term[]|false|WP_Error Array of WP_Term objects on success, false if there are no terms 1219 * or the post does not exist, WP_Error on failure. 1220 1220 */ 1221 1221 function get_the_terms( $post, $taxonomy ) { … … 1238 1238 * @since 3.1.0 1239 1239 * 1240 * @param array|WP_Error $terms Listof attached terms, or WP_Error on failure.1241 * @param int $post_id Post ID.1242 * @param string $taxonomy Name of the taxonomy.1240 * @param WP_Term[]|WP_Error $terms Array of attached terms, or WP_Error on failure. 1241 * @param int $post_id Post ID. 1242 * @param string $taxonomy Name of the taxonomy. 1243 1243 */ 1244 1244 $terms = apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy ); … … 1292 1292 * @since 2.5.0 1293 1293 * 1294 * @param array$links An array of term links.1294 * @param string[] $links An array of term links. 1295 1295 */ 1296 1296 $term_links = apply_filters( "term_links-{$taxonomy}", $links ); -
trunk/src/wp-includes/category.php
r42343 r42875 274 274 * 275 275 * @param string|array $args Tag arguments to use when retrieving tags. 276 * @return array List of tags.276 * @return WP_Term[]|int $tags Array of 'post_tag' term objects, or a count thereof. 277 277 */ 278 278 function get_tags( $args = '' ) { … … 289 289 * @since 2.3.0 290 290 * 291 * @param array $tags Array of 'post_tag' term objects.292 * @param array $args An array of arguments. @see get_terms()291 * @param WP_Term[]|int $tags Array of 'post_tag' term objects, or a count thereof. 292 * @param array $args An array of arguments. @see get_terms() 293 293 */ 294 294 $tags = apply_filters( 'get_tags', $tags, $args ); -
trunk/src/wp-includes/class-oembed.php
r42747 r42875 216 216 * @since 2.9.0 217 217 * 218 * @param array $providers An array ofpopular oEmbed providers.218 * @param array[] $providers An array of arrays containing data about popular oEmbed providers. 219 219 */ 220 220 $this->providers = apply_filters( 'oembed_providers', $providers ); … … 447 447 * @since 2.9.0 448 448 * 449 * @param array$format Array of oEmbed link types. Accepts 'application/json+oembed',450 * 'text/xml+oembed', and 'application/xml+oembed' (incorrect,451 * used by at least Vimeo).449 * @param string[] $format Array of oEmbed link types. Accepts 'application/json+oembed', 450 * 'text/xml+oembed', and 'application/xml+oembed' (incorrect, 451 * used by at least Vimeo). 452 452 */ 453 453 $linktypes = apply_filters( -
trunk/src/wp-includes/class-walker-nav-menu.php
r42808 r42875 69 69 * @since 4.8.0 70 70 * 71 * @param array $classes The CSS classes that are applied to the menu `<ul>` element.71 * @param string[] $classes Array of the CSS classes that are applied to the menu `<ul>` element. 72 72 * @param stdClass $args An object of `wp_nav_menu()` arguments. 73 73 * @param int $depth Depth of menu item. Used for padding. … … 146 146 * @since 4.1.0 The `$depth` parameter was added. 147 147 * 148 * @param array $classes The CSS classes that are applied to the menu item's `<li>` element.148 * @param string[] $classes Array of the CSS classes that are applied to the menu item's `<li>` element. 149 149 * @param WP_Post $item The current menu item. 150 150 * @param stdClass $args An object of wp_nav_menu() arguments. -
trunk/src/wp-includes/class-walker-page.php
r42343 r42875 142 142 * @see wp_list_pages() 143 143 * 144 * @param array $css_class An array of CSS classes to be applied 145 * to each list item. 146 * @param WP_Post $page Page data object. 147 * @param int $depth Depth of page, used for padding. 148 * @param array $args An array of arguments. 149 * @param int $current_page ID of the current page. 144 * @param string[] $css_class An array of CSS classes to be applied to each list item. 145 * @param WP_Post $page Page data object. 146 * @param int $depth Depth of page, used for padding. 147 * @param array $args An array of arguments. 148 * @param int $current_page ID of the current page. 150 149 */ 151 150 $css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) ); -
trunk/src/wp-includes/class-wp-comment-query.php
r42376 r42875 450 450 * @since 3.1.0 451 451 * 452 * @param array$_comments An array of comments.453 * @param WP_Comment_Query $this Current instance of WP_Comment_Query (passed by reference).452 * @param WP_Comment[] $_comments An array of comments. 453 * @param WP_Comment_Query $this Current instance of WP_Comment_Query (passed by reference). 454 454 */ 455 455 $_comments = apply_filters_ref_array( 'the_comments', array( $_comments, &$this ) ); … … 850 850 * @since 3.1.0 851 851 * 852 * @param array $pieces A compactedarray of comment query clauses.853 * @param WP_Comment_Query $this Current instance of WP_Comment_Query (passed by reference).852 * @param string[] $pieces An associative array of comment query clauses. 853 * @param WP_Comment_Query $this Current instance of WP_Comment_Query (passed by reference). 854 854 */ 855 855 $clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $pieces ), &$this ) ); … … 933 933 * @global wpdb $wpdb WordPress database abstraction object. 934 934 * 935 * @param array$comments Array of top-level comments whose descendants should be filled in.935 * @param WP_Comment[] $comments Array of top-level comments whose descendants should be filled in. 936 936 * @return array 937 937 */ -
trunk/src/wp-includes/class-wp-customize-manager.php
r42797 r42875 347 347 * @see WP_Customize_Manager::__construct() 348 348 * 349 * @param array $components Listof core components to load.349 * @param string[] $components Array of core components to load. 350 350 * @param WP_Customize_Manager $this WP_Customize_Manager instance. 351 351 */ … … 3095 3095 * @see _wp_translate_postdata() 3096 3096 * 3097 * @param array $caps Returns the user's actualcapabilities.3098 * @param string $cap Capability name.3099 * @param int $user_id The user ID.3100 * @param array $args Adds the context to the cap. Typically the object ID.3101 * @return array Capabilities.3097 * @param string[] $caps Array of the user's capabilities. 3098 * @param string $cap Capability name. 3099 * @param int $user_id The user ID. 3100 * @param array $args Adds the context to the cap. Typically the object ID. 3101 * @return array Capabilities. 3102 3102 */ 3103 3103 public function grant_edit_post_capability_for_changeset( $caps, $cap, $user_id, $args ) { … … 4507 4507 * @since 3.4.0 4508 4508 * 4509 * @param array$allowed_urls An array of allowed URLs.4509 * @param string[] $allowed_urls An array of allowed URLs. 4510 4510 */ 4511 4511 $allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) ); … … 4620 4620 * @since 4.2.0 4621 4621 * 4622 * @param array$nonces Array of refreshed nonces for save and4622 * @param string[] $nonces Array of refreshed nonces for save and 4623 4623 * preview actions. 4624 4624 * @param WP_Customize_Manager $this WP_Customize_Manager instance. -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r42827 r42875 76 76 * @since 4.5.0 77 77 * 78 * @param array$nonces Array of nonces.79 * @return array$nonces Modified array of nonces.78 * @param string[] $nonces Array of nonces. 79 * @return string[] $nonces Modified array of nonces. 80 80 */ 81 81 public function filter_nonces( $nonces ) { -
trunk/src/wp-includes/class-wp-customize-widgets.php
r42630 r42875 906 906 * @since 3.9.0 907 907 * 908 * @param array$widget_ids Array of widget IDs.909 * @return arrayArray of sanitized widget IDs.908 * @param string[] $widget_ids Array of widget IDs. 909 * @return string[] Array of sanitized widget IDs. 910 910 */ 911 911 public function sanitize_sidebar_widgets( $widget_ids ) { -
trunk/src/wp-includes/class-wp-theme.php
r42747 r42875 1537 1537 * @since 3.4.0 1538 1538 * 1539 * @param array $themes Array of themes to sort (passed by reference).1539 * @param WP_Theme[] $themes Array of theme objects to sort (passed by reference). 1540 1540 */ 1541 1541 public static function sort_by_name( &$themes ) {
Note: See TracChangeset
for help on using the changeset viewer.