mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@49669 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user