[wp-trac] [WordPress Trac] #35173: in_category function doesn't work after update to WP 4.4

WordPress Trac noreply at wordpress.org
Mon Dec 21 20:25:45 UTC 2015


#35173: in_category function doesn't work after update to WP 4.4
-------------------------------+------------------------------
 Reporter:  artem.kolotilkin   |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  4.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by boonebgorges):

 Replying to [comment:2 artem.kolotilkin]:
 > Hi @boonebgorges , thanks for looking into that. I've just confirmed
 that in_category function stops working after update to WP4.4. No other
 changes are done to the codebase.
 >
 > I also tried to apply this patch
 (https://core.trac.wordpress.org/changeset/35851), but it didn't help.
 >
 > Is there anything else I can check to figure this out?

 If my guess is correct, then simply applying a patch is not going to
 demonstrate a fix. The problem is probably not `is_object_in_term()`
 itself. Instead, the problem is likely that some other part of the system
 (core or a plugin) is incorrectly caching an empty array, or perhaps some
 bit of cache is not being properly invalidated.

 Are you running a persistent object cache backend? Memcached, Redis, etc.
 If so, are you able to replicate the problem when this backend is
 disabled.

 Are you able to reproduce the problem on a fresh installation of
 WordPress?

 Can you provide complete details on how to reproduce? Is it *all* uses of
 `in_category()`? Only those in theme templates? For all categories, or
 just specific categories? Within the loop or outside of it? Any details
 you can provide would be helpful.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35173#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list