mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user