Changeset 47401 for trunk/src/wp-includes/query.php
- Timestamp:
- 03/01/2020 05:19:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r47397 r47401 173 173 * @global WP_Query $wp_query WordPress Query object. 174 174 * 175 * @param string|array $post_types Optional. Post type or array of posts types to check against. 175 * @param string|string[] $post_types Optional. Post type or array of posts types 176 * to check against. Default empty. 176 177 * @return bool 177 178 */ … … 198 199 * @global WP_Query $wp_query WordPress Query object. 199 200 * 200 * @param int|string|array|object $attachment Attachment ID, title, slug, or array of such. 201 * @param int|string|int[]|string[] $attachment Optional. Attachment ID, title, slug, or array of such 202 * to check against. Default empty. 201 203 * @return bool 202 204 */ … … 226 228 * @global WP_Query $wp_query WordPress Query object. 227 229 * 228 * @param int|string|int[]|string[] $author Optional. User ID, nickname, nicename, or array of such to check against. 230 * @param int|string|int[]|string[] $author Optional. User ID, nickname, nicename, or array of such 231 * to check against. Default empty. 229 232 * @return bool 230 233 */ … … 254 257 * @global WP_Query $wp_query WordPress Query object. 255 258 * 256 * @param int|string|int[]|string[] $category Optional. Category ID, name, slug, or array of such to check against. 259 * @param int|string|int[]|string[] $category Optional. Category ID, name, slug, or array of such 260 * to check against. Default empty. 257 261 * @return bool 258 262 */ … … 282 286 * @global WP_Query $wp_query WordPress Query object. 283 287 * 284 * @param int|string|int[]|string[] $tag Optional. Tag ID, name, slug, or array of such to check against. 288 * @param int|string|int[]|string[] $tag Optional. Tag ID, name, slug, or array of such 289 * to check against. Default empty. 285 290 * @return bool 286 291 */ … … 315 320 * 316 321 * @param string|string[] $taxonomy Optional. Taxonomy slug or slugs to check against. 317 * @param int|string|int[]|string[] $term Optional. Term ID, name, slug, or array of such to check against. 318 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives). 322 * Default empty. 323 * @param int|string|int[]|string[] $term Optional. Term ID, name, slug, or array of such 324 * to check against. Default empty. 325 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies 326 * (category and tag archives). 319 327 */ 320 328 function is_tax( $taxonomy = '', $term = '' ) { … … 390 398 * @global WP_Query $wp_query WordPress Query object. 391 399 * 392 * @param string|array $feeds Optional feed types to check. 400 * @param string|string[] $feeds Optional. Feed type or array of feed types 401 * to check against. Default empty. 393 402 * @return bool 394 403 */ … … 561 570 * @global WP_Query $wp_query WordPress Query object. 562 571 * 563 * @param int|string|array $page Optional. Page ID, title, slug, or array of such. Default empty. 572 * @param int|string|array $page Optional. Page ID, title, slug, or array of such 573 * to check against. Default empty. 564 574 * @return bool Whether the query is for an existing single page. 565 575 */ … … 706 716 * @global WP_Query $wp_query WordPress Query object. 707 717 * 708 * @param int|string|array $post Optional. Post ID, title, slug, or array of such. Default empty. 718 * @param int|string|array $post Optional. Post ID, title, slug, or array of such 719 * to check against. Default empty. 709 720 * @return bool Whether the query is for an existing single post. 710 721 */ … … 738 749 * @global WP_Query $wp_query WordPress Query object. 739 750 * 740 * @param string|array $post_types Optional. Post type or array of post types. Default empty. 741 * @return bool Whether the query is for an existing single post of any of the given post types. 751 * @param string|array $post_types Optional. Post type or array of post types 752 * to check against. Default empty. 753 * @return bool Whether the query is for an existing single post 754 * or any of the given post types. 742 755 */ 743 756 function is_singular( $post_types = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.