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

WordPress Trac noreply at wordpress.org
Mon Aug 8 17:53:23 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:
--------------------------+---------------------------

Comment (by cmillerdev):

 @boonebgorges yes it's because it's checking for an object in an array of
 objects. You could change it to check for the term by ID etc, but
 `has_term()` seemed much simpler. Test should be easy enough, I'm not
 writing it though, I want nothing to do with that horrendous function! I'm
 just reporting the issue. Feel free to use that patch, or not, up to you.

 Cheers

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


More information about the wp-trac mailing list