[wp-trac] [WordPress Trac] #27213: in_category() returns true in Home page on local install
WordPress Trac
noreply at wordpress.org
Wed Feb 26 17:12:09 UTC 2014
#27213: in_category() returns true in Home page on local install
--------------------------+----------------------
Reporter: Marventus | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: trunk
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by helen):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
I think this belongs on the support forums: https://wordpress.org/support/
That said, I suspect your posts are not the same between environments -
`in_category()` applies to a specific post, and shouldn't be used in
`wp_head` without checking if you're looking at a singular item or else
you might get unpredictable results.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27213#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list