Changeset 47401 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 03/01/2020 05:19:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r47397 r47401 3609 3609 * @since 3.1.0 3610 3610 * 3611 * @param string|string[] $post_types Optional. Post type or array of posts types to check against. 3611 * @param string|string[] $post_types Optional. Post type or array of posts types 3612 * to check against. Default empty. 3612 3613 * @return bool 3613 3614 */ … … 3631 3632 * @since 3.1.0 3632 3633 * 3633 * @param int|string|int[]|string[] $attachment Optional. Attachment ID, title, slug, or array of such to check against. 3634 * @param int|string|int[]|string[] $attachment Optional. Attachment ID, title, slug, or array of such 3635 * to check against. Default empty. 3634 3636 * @return bool 3635 3637 */ … … 3665 3667 * @since 3.1.0 3666 3668 * 3667 * @param int|string|int[]|string[] $author Optional. User ID, nickname, nicename, or array of such to check against. 3669 * @param int|string|int[]|string[] $author Optional. User ID, nickname, nicename, or array of such 3670 * to check against. Default empty. 3668 3671 * @return bool 3669 3672 */ … … 3700 3703 * @since 3.1.0 3701 3704 * 3702 * @param int|string|int[]|string[] $category Optional. Category ID, name, slug, or array of such to check against. 3705 * @param int|string|int[]|string[] $category Optional. Category ID, name, slug, or array of such 3706 * to check against. Default empty. 3703 3707 * @return bool 3704 3708 */ … … 3735 3739 * @since 3.1.0 3736 3740 * 3737 * @param int|string|int[]|string[] $tag Optional. Tag ID, name, slug, or array of such to check against. 3741 * @param int|string|int[]|string[] $tag Optional. Tag ID, name, slug, or array of such 3742 * to check against. Default empty. 3738 3743 * @return bool 3739 3744 */ … … 3777 3782 * 3778 3783 * @param string|string[] $taxonomy Optional. Taxonomy slug or slugs to check against. 3779 * @param int|string|int[]|string[] $term Optional. Term ID, name, slug, or array of such to check against. 3780 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives). 3784 * Default empty. 3785 * @param int|string|int[]|string[] $term Optional. Term ID, name, slug, or array of such 3786 * to check against. Default empty. 3787 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies 3788 * (category and tag archives). 3781 3789 */ 3782 3790 public function is_tax( $taxonomy = '', $term = '' ) { … … 3855 3863 * @since 3.1.0 3856 3864 * 3857 * @param string|array $feeds Optional feed types to check. 3865 * @param string|string[] $feeds Optional. Feed type or array of feed types 3866 * to check against. Default empty. 3858 3867 * @return bool 3859 3868 */ … … 3970 3979 * @since 3.1.0 3971 3980 * 3972 * @param int|string|array $page Optional. Page ID, title, slug, path, or array of such. Default empty. 3981 * @param int|string|array $page Optional. Page ID, title, slug, path, or array of such 3982 * to check against. Default empty. 3973 3983 * @return bool Whether the query is for an existing single page. 3974 3984 */ … … 4076 4086 * @since 3.1.0 4077 4087 * 4078 * @param int|string|array $post Optional. Post ID, title, slug, path, or array of such. Default empty. 4088 * @param int|string|array $post Optional. Post ID, title, slug, path, or array of such 4089 * to check against. Default empty. 4079 4090 * @return bool Whether the query is for an existing single post. 4080 4091 */ … … 4125 4136 * @since 3.1.0 4126 4137 * 4127 * @param string|array $post_types Optional. Post type or array of post types. Default empty. 4128 * @return bool Whether the query is for an existing single post of any of the given post types. 4138 * @param string|array $post_types Optional. Post type or array of post types 4139 * to check against. Default empty. 4140 * @return bool Whether the query is for an existing single post 4141 * or any of the given post types. 4129 4142 */ 4130 4143 public function is_singular( $post_types = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.