Changeset 42876
- Timestamp:
- 03/25/2018 07:32:24 PM (7 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-embed.php
r42343 r42876 375 375 * @since 2.9.0 376 376 * 377 * @param array $post_types Array of post types to cache oEmbed results for. Defaults to post types with `show_ui` set to true.377 * @param string[] $post_types Array of post type names to cache oEmbed results for. Defaults to post types with `show_ui` set to true. 378 378 */ 379 379 if ( empty( $post->ID ) || ! in_array( $post->post_type, apply_filters( 'embed_cache_oembed_types', $post_types ) ) ) { -
trunk/src/wp-includes/class-wp-http-ixr-client.php
r42343 r42876 73 73 * @since 4.4.0 74 74 * 75 * @param array $headers Array of headers to be sent.75 * @param string[] $headers Associative array of headers to be sent. 76 76 */ 77 77 $args['headers'] = apply_filters( 'wp_http_ixr_client_headers', $args['headers'] ); -
trunk/src/wp-includes/class-wp-network-query.php
r42343 r42876 260 260 * @since 4.6.0 261 261 * 262 * @param array$_networks An array of WP_Network objects.262 * @param WP_Network[] $_networks An array of WP_Network objects. 263 263 * @param WP_Network_Query $this Current instance of WP_Network_Query (passed by reference). 264 264 */ … … 400 400 * @since 4.6.0 401 401 * 402 * @param array $pieces A compactedarray of network query clauses.402 * @param string[] $pieces An associative array of network query clauses. 403 403 * @param WP_Network_Query $this Current instance of WP_Network_Query (passed by reference). 404 404 */ … … 479 479 * @global wpdb $wpdb WordPress database abstraction object. 480 480 * 481 * @param string $string Search string.482 * @param array $columns Columns to search.481 * @param string $string Search string. 482 * @param string[] $columns Array of columns to search. 483 483 * 484 484 * @return string Search SQL. -
trunk/src/wp-includes/class-wp-network.php
r42746 r42876 404 404 * @since 3.9.0 405 405 * 406 * @param null|bool| object$network Network value to return by path.407 * @param string $domain The requested domain.408 * @param string $path The requested path, in full.409 * @param int|null $segments The suggested number of paths to consult.410 * Default null, meaning the entire path was to be consulted.411 * @param array $paths The paths to search for, based on $path and $segments.406 * @param null|bool|WP_Network $network Network value to return by path. 407 * @param string $domain The requested domain. 408 * @param string $path The requested path, in full. 409 * @param int|null $segments The suggested number of paths to consult. 410 * Default null, meaning the entire path was to be consulted. 411 * @param string[] $paths Array of paths to search for, based on `$path` and `$segments`. 412 412 */ 413 413 $pre = apply_filters( 'pre_get_network_by_path', null, $domain, $path, $segments, $paths ); -
trunk/src/wp-includes/class-wp-query.php
r42843 r42876 1380 1380 * @since 3.7.0 1381 1381 * 1382 * @param array $terms Terms to check.1382 * @param string[] $terms Array of terms to check. 1383 1383 * @return array Terms that are not stopwords. 1384 1384 */ … … 1448 1448 * @since 3.7.0 1449 1449 * 1450 * @param array $stopwords Stopwords.1450 * @param string[] $stopwords Array of stopwords. 1451 1451 */ 1452 1452 $this->stopwords = apply_filters( 'wp_search_stopwords', $stopwords ); … … 2695 2695 * @since 3.1.0 2696 2696 * 2697 * @param array $clauses The list ofclauses for the query.2697 * @param string[] $clauses Associative array of the clauses for the query. 2698 2698 * @param WP_Query $this The WP_Query instance (passed by reference). 2699 2699 */ … … 2819 2819 * @since 3.1.0 2820 2820 * 2821 * @param array $pieces The pieces of the query.2821 * @param string[] $pieces Associative array of the pieces of the query. 2822 2822 * @param WP_Query $this The WP_Query instance (passed by reference). 2823 2823 */ … … 2966 2966 * @since 2.3.0 2967 2967 * 2968 * @param array $posts The post results array.2969 * @param WP_Query $thisThe WP_Query instance (passed by reference).2968 * @param WP_Post[] $posts Array of post objects. 2969 * @param WP_Query $this The WP_Query instance (passed by reference). 2970 2970 */ 2971 2971 $this->posts = apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) ); … … 3103 3103 * @since 1.5.0 3104 3104 * 3105 * @param array $posts The array of retrieved posts.3106 * @param WP_Query $this The WP_Query instance (passed by reference).3105 * @param WP_Post[] $posts Array of post objects. 3106 * @param WP_Query $this The WP_Query instance (passed by reference). 3107 3107 */ 3108 3108 $this->posts = apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) ); … … 4178 4178 * @since 4.4.0 4179 4179 * 4180 * @param array $pages Array of "pages" derived from the post content. 4181 * of `<!-- nextpage -->` tags.. 4182 * @param WP_Post $post Current post object. 4180 * @param string[] $pages Array of "pages" from the post content split by `<!-- nextpage -->` tags. 4181 * @param WP_Post $post Current post object. 4183 4182 */ 4184 4183 $pages = apply_filters( 'content_pagination', $pages, $post ); -
trunk/src/wp-includes/class-wp-role.php
r42343 r42876 95 95 * @since 2.0.0 96 96 * 97 * @param array $capabilities Array of role capabilities.97 * @param bool[] $capabilities Associative array of capabilities for the role. 98 98 * @param string $cap Capability name. 99 99 * @param string $name Role name. -
trunk/src/wp-includes/class-wp-site-query.php
r42836 r42876 308 308 * @since 4.6.0 309 309 * 310 * @param array$_sites An array of WP_Site objects.310 * @param WP_Site[] $_sites An array of WP_Site objects. 311 311 * @param WP_Site_Query $this Current instance of WP_Site_Query (passed by reference). 312 312 */ … … 510 510 * @since 4.6.0 511 511 * 512 * @param array$search_columns Array of column names to be searched.512 * @param string[] $search_columns Array of column names to be searched. 513 513 * @param string $search Text being searched. 514 514 * @param WP_Site_Query $this The current WP_Site_Query instance. … … 536 536 * @since 4.6.0 537 537 * 538 * @param array $pieces A compactedarray of site query clauses.538 * @param string[] $pieces An associative array of site query clauses. 539 539 * @param WP_Site_Query $this Current instance of WP_Site_Query (passed by reference). 540 540 */ … … 615 615 * @global wpdb $wpdb WordPress database abstraction object. 616 616 * 617 * @param string $string Search string.618 * @param array $columns Columns to search.617 * @param string $string Search string. 618 * @param string[] $columns Array of columns to search. 619 619 * @return string Search SQL. 620 620 */ -
trunk/src/wp-includes/class-wp-taxonomy.php
r42748 r42876 247 247 * @since 4.4.0 248 248 * 249 * @param array $args Array of arguments for registering a taxonomy.250 * @param string $taxonomy Taxonomy key.251 * @param array$object_type Array of names of object types for the taxonomy.249 * @param array $args Array of arguments for registering a taxonomy. 250 * @param string $taxonomy Taxonomy key. 251 * @param string[] $object_type Array of names of object types for the taxonomy. 252 252 */ 253 253 $args = apply_filters( 'register_taxonomy_args', $args, $this->name, (array) $object_type ); -
trunk/src/wp-includes/class-wp-term-query.php
r42343 r42876 239 239 * @since 4.4.0 240 240 * 241 * @param array $defaults An array of default get_terms() arguments.242 * @param array $taxonomies An array of taxonomies.241 * @param array $defaults An array of default get_terms() arguments. 242 * @param string[] $taxonomies An array of taxonomy names. 243 243 */ 244 244 $this->query_var_defaults = apply_filters( 'get_terms_defaults', $this->query_var_defaults, $taxonomies ); … … 352 352 * @since 3.1.0 353 353 * 354 * @param array $args An array of get_terms() arguments.355 * @param array $taxonomies An array of taxonomies.354 * @param array $args An array of get_terms() arguments. 355 * @param string[] $taxonomies An array of taxonomy names. 356 356 */ 357 357 $args = apply_filters( 'get_terms_args', $args, $taxonomies ); … … 464 464 * @since 2.3.0 465 465 * 466 * @param string $exclusions `NOT IN` clause of the terms query.467 * @param array $args An array of terms query arguments.468 * @param array $taxonomies An array of taxonomies.466 * @param string $exclusions `NOT IN` clause of the terms query. 467 * @param array $args An array of terms query arguments. 468 * @param string[] $taxonomies An array of taxonomy names. 469 469 */ 470 470 $exclusions = apply_filters( 'list_terms_exclusions', $exclusions, $args, $taxonomies ); … … 628 628 * @since 2.8.0 629 629 * 630 * @param array$selects An array of fields to select for the terms query.631 * @param array $args An array of term query arguments.632 * @param array $taxonomies An array of taxonomies.630 * @param string[] $selects An array of fields to select for the terms query. 631 * @param array $args An array of term query arguments. 632 * @param string[] $taxonomies An array of taxonomy names. 633 633 */ 634 634 $fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) ); … … 647 647 * @since 3.1.0 648 648 * 649 * @param array $pieces Termsquery SQL clauses.650 * @param array $taxonomies An array of taxonomies.651 * @param array $args An array of termsquery arguments.649 * @param string[] $pieces Array of query SQL clauses. 650 * @param string[] $taxonomies An array of taxonomy names. 651 * @param array $args An array of term query arguments. 652 652 */ 653 653 $clauses = apply_filters( 'terms_clauses', compact( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' ), $taxonomies, $args ); … … 860 860 * @since 2.8.0 861 861 * 862 * @param string $orderby `ORDERBY` clause of the terms query.863 * @param array $args An array of termsquery arguments.864 * @param array $taxonomies An array of taxonomies.862 * @param string $orderby `ORDERBY` clause of the terms query. 863 * @param array $args An array of term query arguments. 864 * @param string[] $taxonomies An array of taxonomy names. 865 865 */ 866 866 $orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] ); -
trunk/src/wp-includes/class-wp-theme.php
r42875 r42876 1192 1192 * @since 4.7.0 Added the `$post_type` parameter. 1193 1193 * 1194 * @param array$post_templates Array of page templates. Keys are filenames,1194 * @param string[] $post_templates Array of page templates. Keys are filenames, 1195 1195 * values are translated names. 1196 1196 * @param WP_Theme $this The theme object. … … 1240 1240 * @since 4.7.4 1241 1241 * 1242 * @param array$exclusions Array of excluded directories and files.1242 * @param string[] $exclusions Array of excluded directories and files. 1243 1243 */ 1244 1244 $exclusions = (array) apply_filters( 'theme_scandir_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) ); … … 1357 1357 * 1358 1358 * @param int $blog_id Optional. ID of the site. Defaults to the current site. 1359 * @return arrayArray of stylesheet names.1359 * @return string[] Array of stylesheet names. 1360 1360 */ 1361 1361 public static function get_allowed( $blog_id = null ) { … … 1368 1368 * @since 4.5.0 1369 1369 * 1370 * @param array$allowed_themes An array of theme stylesheet names.1371 * @param int $blog_id ID of the site.1370 * @param string[] $allowed_themes An array of theme stylesheet names. 1371 * @param int $blog_id ID of the site. 1372 1372 */ 1373 1373 $network = (array) apply_filters( 'network_allowed_themes', self::get_allowed_on_network(), $blog_id ); … … 1382 1382 * @staticvar array $allowed_themes 1383 1383 * 1384 * @return arrayArray of stylesheet names.1384 * @return string[] Array of stylesheet names. 1385 1385 */ 1386 1386 public static function get_allowed_on_network() { … … 1395 1395 * @since MU (3.0.0) 1396 1396 * 1397 * @param array$allowed_themes An array of theme stylesheet names.1397 * @param string[] $allowed_themes An array of theme stylesheet names. 1398 1398 */ 1399 1399 $allowed_themes = apply_filters( 'allowed_themes', $allowed_themes ); … … 1410 1410 * 1411 1411 * @param int $blog_id Optional. ID of the site. Defaults to the current site. 1412 * @return arrayArray of stylesheet names.1412 * @return string[] Array of stylesheet names. 1413 1413 */ 1414 1414 public static function get_allowed_on_site( $blog_id = null ) { … … 1425 1425 * @since 4.5.0 1426 1426 * 1427 * @param array$allowed_themes An array of theme stylesheet names.1428 * @param int $blog_id ID of the site. Defaults to current site.1427 * @param string[] $allowed_themes An array of theme stylesheet names. 1428 * @param int $blog_id ID of the site. Defaults to current site. 1429 1429 */ 1430 1430 return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id ); … … 1487 1487 * @since 4.6.0 1488 1488 * 1489 * @param string| array$stylesheets Stylesheet name or array of stylesheet names.1489 * @param string|string[] $stylesheets Stylesheet name or array of stylesheet names. 1490 1490 */ 1491 1491 public static function network_enable_theme( $stylesheets ) { … … 1511 1511 * @since 4.6.0 1512 1512 * 1513 * @param string| array$stylesheets Stylesheet name or array of stylesheet names.1513 * @param string|string[] $stylesheets Stylesheet name or array of stylesheet names. 1514 1514 */ 1515 1515 public static function network_disable_theme( $stylesheets ) { -
trunk/src/wp-includes/class-wp-user-query.php
r42343 r42876 542 542 * @since 3.6.0 543 543 * 544 * @param array$search_columns Array of column names to be searched.544 * @param string[] $search_columns Array of column names to be searched. 545 545 * @param string $search Text being searched. 546 546 * @param WP_User_Query $this The current WP_User_Query instance. -
trunk/src/wp-includes/class-wp-user.php
r42747 r42876 611 611 * @since 3.6.0 Added $old_roles to include an array of the user's previous roles. 612 612 * 613 * @param int $user_id The user ID.614 * @param string $role The new role.615 * @param array$old_roles An array of the user's previous roles.613 * @param int $user_id The user ID. 614 * @param string $role The new role. 615 * @param string[] $old_roles An array of the user's previous roles. 616 616 */ 617 617 do_action( 'set_user_role', $this->ID, $role, $old_roles ); … … 751 751 * @since 3.7.0 Added the user object. 752 752 * 753 * @param array$allcaps An array of all the user's capabilities.754 * @param array$caps Actual capabilities for meta capability.755 * @param array $args Optional parameters passed to has_cap(), typically object ID.756 * @param WP_User $user The user object.753 * @param bool[] $allcaps An array of all the user's capabilities. 754 * @param string[] $caps Actual capabilities for meta capability. 755 * @param array $args Optional parameters passed to has_cap(), typically object ID. 756 * @param WP_User $user The user object. 757 757 */ 758 758 $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this ); -
trunk/src/wp-includes/class-wp.php
r42419 r42876 13 13 * 14 14 * @since 2.0.0 15 * @var array15 * @var string[] 16 16 */ 17 17 public $public_query_vars = array( 'm', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type', 'embed' ); … … 23 23 * 24 24 * @since 2.0.0 25 * @var array25 * @var string[] 26 26 */ 27 27 public $private_query_vars = array( 'offset', 'posts_per_page', 'posts_per_archive_page', 'showposts', 'nopaging', 'post_type', 'post_status', 'category__in', 'category__not_in', 'category__and', 'tag__in', 'tag__not_in', 'tag__and', 'tag_slug__in', 'tag_slug__and', 'tag_id', 'post_mime_type', 'perm', 'comments_per_page', 'post__in', 'post__not_in', 'post_parent', 'post_parent__in', 'post_parent__not_in', 'title', 'fields' ); … … 283 283 * @since 1.5.0 284 284 * 285 * @param array $public_query_vars The array of whitelisted query variables.285 * @param string[] $public_query_vars The array of whitelisted query variable names. 286 286 */ 287 287 $this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars ); … … 478 478 * @since 2.8.0 479 479 * 480 * @param array $headers The listof headers to be sent.481 * @param WP $this Current WordPress environment instance.480 * @param string[] $headers Associative array of headers to be sent. 481 * @param WP $this Current WordPress environment instance. 482 482 */ 483 483 $headers = apply_filters( 'wp_headers', $headers, $this ); -
trunk/src/wp-includes/class.wp-dependencies.php
r42343 r42876 204 204 * @param string $handle Name of the item. Should be unique. 205 205 * @param string $src Full URL of the item, or path of the item relative to the WordPress root directory. 206 * @param array$deps Optional. An array of registered item handles this item depends on. Default empty array.206 * @param string[] $deps Optional. An array of registered item handles this item depends on. Default empty array. 207 207 * @param string|bool|null $ver Optional. String specifying item version number, if it has one, which is added to the URL 208 208 * as a query string for cache busting purposes. If version is set to false, a version … … 330 330 * @since 4.0.0 331 331 * 332 * @param array $queue An array of queued _WP_Dependency handle objects.333 * @param string $handle Name of the item. Should be unique.332 * @param string[] $queue An array of queued _WP_Dependency handles. 333 * @param string $handle Name of the item. Should be unique. 334 334 * @return bool Whether the handle is found after recursively searching the dependency tree. 335 335 */ -
trunk/src/wp-includes/class.wp-scripts.php
r42343 r42876 497 497 * @since 2.3.0 498 498 * 499 * @param array $to_do An array of script dependencies.499 * @param string[] $to_do An array of script dependency handles. 500 500 */ 501 501 $this->to_do = apply_filters( 'print_scripts_array', $this->to_do ); -
trunk/src/wp-includes/class.wp-styles.php
r42343 r42876 307 307 * @since 2.6.0 308 308 * 309 * @param array $to_do The list of enqueued styles about to be processed.309 * @param string[] $to_do The list of enqueued style handles about to be processed. 310 310 */ 311 311 $this->to_do = apply_filters( 'print_styles_array', $this->to_do ); -
trunk/src/wp-includes/comment-template.php
r42843 r42876 524 524 * @since 2.7.0 525 525 * 526 * @param array$classes An array of comment classes.526 * @param string[] $classes An array of comment classes. 527 527 * @param string $class A comma-separated list of additional classes added to the list. 528 528 * @param int $comment_id The comment id. … … 2281 2281 * @since 3.0.0 2282 2282 * 2283 * @param array $fields The default comment fields.2283 * @param string[] $fields Array of the default comment fields. 2284 2284 */ 2285 2285 $fields = apply_filters( 'comment_form_default_fields', $fields ); -
trunk/src/wp-includes/comment.php
r42772 r42876 518 518 * @since 4.5.0 519 519 * 520 * @param array$comments Array of comment objects.520 * @param WP_Comment[] $comments Array of comment objects. 521 521 */ 522 522 function wp_queue_comments_for_comment_meta_lazyload( $comments ) { … … 919 919 * @since 2.7.0 920 920 * 921 * @param array$comments Array of comments922 * @return arrayArray of comments keyed by comment_type.921 * @param WP_Comment[] $comments Array of comments 922 * @return WP_Comment[] Array of comments keyed by comment_type. 923 923 */ 924 924 function separate_comments( &$comments ) { … … 953 953 * @global WP_Query $wp_query 954 954 * 955 * @param array $comments Optional array of WP_Comment objects. Defaults to $wp_query->comments956 * @param int $per_page Optional comments per page.957 * @param bool $threaded Optional control over flat or threaded comments.955 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects. Defaults to $wp_query->comments. 956 * @param int $per_page Optional. Comments per page. 957 * @param bool $threaded Optional. Control over flat or threaded comments. 958 958 * @return int Number of comment pages. 959 959 */ … … 2741 2741 * @since 2.0.0 2742 2742 * 2743 * @param array $post_links An array of post links to be checked (passed by reference).2744 * @param array $pung Whether a link has already beenpinged (passed by reference).2745 * @param int $post_ID The post ID.2743 * @param string[] $post_links Array of link URLs to be checked (passed by reference). 2744 * @param string[] $pung Array of link URLs already pinged (passed by reference). 2745 * @param int $post_ID The post ID. 2746 2746 */ 2747 2747 do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post->ID ) ); … … 2933 2933 * @since 4.4.0 Introduced the `$update_meta_cache` parameter. 2934 2934 * 2935 * @param array $comments Array of comment rowobjects2936 * @param bool $update_meta_cache Whether to update commentmeta cache. Default true.2935 * @param WP_Comment[] $comments Array of comment objects 2936 * @param bool $update_meta_cache Whether to update commentmeta cache. Default true. 2937 2937 */ 2938 2938 function update_comment_cache( $comments, $update_meta_cache = true ) { … … 2960 2960 * @global wpdb $wpdb WordPress database abstraction object. 2961 2961 * 2962 * @param array$comment_ids Array of comment IDs.2962 * @param int[] $comment_ids Array of comment IDs. 2963 2963 * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true. 2964 2964 */ … … 2998 2998 * @since 3.2.0 2999 2999 * 3000 * @param array $post_types An array of registered post types. Default array with 'post'.3000 * @param string[] $post_types An array of post type names. 3001 3001 */ 3002 3002 $post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) ); -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
r42746 r42876 469 469 * @see wp_get_nav_menu_items() 470 470 * 471 * @param array$items An array of menu item post objects.472 * @param object$menu The menu object.473 * @param array $args An array of arguments used to retrieve menu item objects.474 * @return array Array of menu items,471 * @param WP_Post[] $items An array of menu item post objects. 472 * @param WP_Term $menu The menu object. 473 * @param array $args An array of arguments used to retrieve menu item objects. 474 * @return WP_Post[] Array of menu item objects. 475 475 */ 476 476 public function filter_wp_get_nav_menu_items( $items, $menu, $args ) { … … 542 542 * @see wp_get_nav_menu_items() 543 543 * 544 * @param array$items An array of menu item post objects.545 * @param object$menu The menu object.546 * @param array $args An array of arguments used to retrieve menu item objects.547 * @return array Array of menu items,544 * @param WP_Post[] $items An array of menu item post objects. 545 * @param WP_Term $menu The menu object. 546 * @param array $args An array of arguments used to retrieve menu item objects. 547 * @return WP_Post[] Array of menu item objects. 548 548 */ 549 549 public static function sort_wp_get_nav_menu_items( $items, $menu, $args ) { -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php
r42343 r42876 233 233 * @see wp_get_nav_menus() 234 234 * 235 * @param array$menus An array of menu objects.236 * @param array $args An array of arguments used to retrieve menu objects.237 * @return array235 * @param WP_Term[] $menus An array of menu objects. 236 * @param array $args An array of arguments used to retrieve menu objects. 237 * @return WP_Term[] Array of menu objects. 238 238 */ 239 239 public function filter_wp_get_nav_menus( $menus, $args ) { -
trunk/src/wp-includes/customize/class-wp-customize-selective-refresh.php
r42343 r42876 219 219 * @see WP_Customize_Manager::add_dynamic_settings() 220 220 * 221 * @param array $partial_ids The partial IDto add.222 * @return array Added WP_Customize_Partial instances.221 * @param string[] $partial_ids Array of the partial IDs to add. 222 * @return WP_Customize_Partial[] Array of added WP_Customize_Partial instances. 223 223 */ 224 224 public function add_dynamic_partials( $partial_ids ) { -
trunk/src/wp-includes/date.php
r42343 r42876 500 500 * @since 4.1.0 Added 'user_registered' to the default recognized columns. 501 501 * 502 * @param array$valid_columns An array of valid date query columns. Defaults503 * are 'post_date', 'post_date_gmt', 'post_modified',504 * 'post_modified_gmt', 'comment_date', 'comment_date_gmt',505 * 'user_registered'502 * @param string[] $valid_columns An array of valid date query columns. Defaults 503 * are 'post_date', 'post_date_gmt', 'post_modified', 504 * 'post_modified_gmt', 'comment_date', 'comment_date_gmt', 505 * 'user_registered' 506 506 */ 507 507 if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ) ) ) { -
trunk/src/wp-includes/embed.php
r42343 r42876 77 77 * @since 2.9.0 78 78 * 79 * @param array$size An array of embed width and height values79 * @param int[] $size An array of embed width and height values 80 80 * in pixels (in that order). 81 81 * @param string $url The URL that should be embedded. -
trunk/src/wp-includes/functions.php
r42836 r42876 5458 5458 5459 5459 /** 5460 * Retrieve ids that are not already present in the cache.5460 * Retrieve IDs that are not already present in the cache. 5461 5461 * 5462 5462 * @since 3.4.0 5463 5463 * @access private 5464 5464 * 5465 * @param array $object_ids ID list.5465 * @param int[] $object_ids Array of IDs. 5466 5466 * @param string $cache_key The cache bucket to check against. 5467 * 5468 * @return array List of ids not present in the cache. 5467 * @return int[] Array of IDs not present in the cache. 5469 5468 */ 5470 5469 function _get_non_cached_ids( $object_ids, $cache_key ) { -
trunk/src/wp-includes/l10n.php
r42843 r42876 550 550 * @since 1.5.0 551 551 * 552 * @global array$l10n An array of all currently loaded text domains.553 * @global array$l10n_unloaded An array of all text domains that have been unloaded again.552 * @global MO[] $l10n An array of all currently loaded text domains. 553 * @global MO[] $l10n_unloaded An array of all text domains that have been unloaded again. 554 554 * 555 555 * @param string $domain Text domain. Unique identifier for retrieving translated strings. … … 624 624 * @since 3.0.0 625 625 * 626 * @global array$l10n An array of all currently loaded text domains.627 * @global array$l10n_unloaded An array of all text domains that have been unloaded again.626 * @global MO[] $l10n An array of all currently loaded text domains. 627 * @global MO[] $l10n_unloaded An array of all text domains that have been unloaded again. 628 628 * 629 629 * @param string $domain Text domain. Unique identifier for retrieving translated strings. … … 857 857 * 858 858 * @see get_translations_for_domain() 859 * @global array$l10n_unloaded An array of all text domains that have been unloaded again.859 * @global MO[] $l10n_unloaded An array of all text domains that have been unloaded again. 860 860 * 861 861 * @param string $domain Text domain. Unique identifier for retrieving translated strings. … … 965 965 * @since 2.8.0 966 966 * 967 * @global array$l10n967 * @global MO[] $l10n 968 968 * @staticvar NOOP_Translations $noop_translations 969 969 * … … 990 990 * @since 3.0.0 991 991 * 992 * @global array$l10n992 * @global MO[] $l10n 993 993 * 994 994 * @param string $domain Text domain. Unique identifier for retrieving translated strings. -
trunk/src/wp-includes/post.php
r42769 r42876 1044 1044 * element from the array needs to match; 'and' means all elements 1045 1045 * must match; 'not' means no elements may match. Default 'and'. 1046 * @return array A listof post type names or objects.1046 * @return string[]|WP_Post_Type[] An array of post type names or objects. 1047 1047 */ 1048 1048 function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) { … … 4342 4342 * 4343 4343 * @param int|WP_Post $post_id Post ID or object. 4344 * @return array4344 * @return bool|string[] Array of URLs already pinged for the given post, false if the post is not found. 4345 4345 */ 4346 4346 function get_pung( $post_id ) { … … 4358 4358 * @since 2.0.0 4359 4359 * 4360 * @param array$pung Array of URLs already pinged for the given post.4360 * @param string[] $pung Array of URLs already pinged for the given post. 4361 4361 */ 4362 4362 return apply_filters( 'get_pung', $pung );
Note: See TracChangeset
for help on using the changeset viewer.