Docs: Use more specific type in parameter descriptions for `in_category()` and `is_object_in_term()`.
This better aligns with `is_category()` and other conditional tags and their `WP_Query` counterpart methods. Follow-up to [47402]. Props princeahmed. Fixes #51825. Built from https://develop.svn.wordpress.org/trunk@49669 git-svn-id: http://core.svn.wordpress.org/trunk@49392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
da6ab833d5
commit
aab7112b09
|
@ -248,8 +248,9 @@ function get_the_category_list( $separator = '', $parents = '', $post_id = false
|
|||
* @since 1.2.0
|
||||
* @since 2.7.0 The `$post` parameter was added.
|
||||
*
|
||||
* @param int|string|array $category Category ID, name or slug, or array of said.
|
||||
* @param int|object $post Optional. Post to check instead of the current post.
|
||||
* @param int|string|int[]|string[] $category Category ID, name, slug, or array of such
|
||||
* to check against.
|
||||
* @param int|object $post Optional. Post to check instead of the current post.
|
||||
* @return bool True if the current post is in any of the given categories.
|
||||
*/
|
||||
function in_category( $category, $post = null ) {
|
||||
|
|
|
@ -4566,9 +4566,10 @@ function get_post_taxonomies( $post = 0 ) {
|
|||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param int $object_id ID of the object (post ID, link ID, ...).
|
||||
* @param string $taxonomy Single taxonomy name.
|
||||
* @param int|string|array $terms Optional. Term term_id, name, slug or array of said. Default null.
|
||||
* @param int $object_id ID of the object (post ID, link ID, ...).
|
||||
* @param string $taxonomy Single taxonomy name.
|
||||
* @param int|string|int[]|string[] $terms Optional. Term ID, name, slug, or array of such
|
||||
* to check against. Default null.
|
||||
* @return bool|WP_Error WP_Error on input error.
|
||||
*/
|
||||
function is_object_in_term( $object_id, $taxonomy, $terms = null ) {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-49668';
|
||||
$wp_version = '5.7-alpha-49669';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue