[wp-trac] [WordPress Trac] #51825: Spelling error on category-template.php
WordPress Trac
noreply at wordpress.org
Fri Nov 20 11:33:13 UTC 2020
#51825: Spelling error on category-template.php
--------------------------+-----------------------------
Reporter: princeahmed | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.7
Component: Taxonomy | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
--------------------------+-----------------------------
Comment (by SergeyBiryukov):
Replying to [comment:5 princeahmed]:
> Should I submit another new ticket by improving the parameter
descriptions for in_category() and is_object_in_term()?
Thanks for the patch! Just to clarify, as previously noted in comment:1,
the function accepts not only an array of category IDs, but also an array
of category names or slugs, so [attachment:"51825.patch"] is not quite
correct.
This is now changed in [49669] to "Category ID, name, slug, or array of
such to check against", for consistency with other conditional tags and
`WP_Query` methods, see also [47401] and [47402].
If you have any further ideas on improving the descriptions, please share
:)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51825#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list