[wp-trac] [WordPress Trac] #36602: Improvement to redirect_canonical with category permalink

WordPress Trac noreply at wordpress.org
Mon Aug 8 15:13:45 UTC 2016


#36602: Improvement to redirect_canonical with category permalink
--------------------------+---------------------------
 Reporter:  spacedmonkey  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  reopened
 Priority:  normal        |   Milestone:  4.6
Component:  Canonical     |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 @cmillerdev Can you explain why the `in_array()` check fails? Does this
 have something to do with object identity?

 Your fix seems OK to me (`has_term()` falls back to `is_object_in_term()`,
 which checks the object cache) but we need a test to demonstrate the
 failure.

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


More information about the wp-trac mailing list