[wp-trac] [WordPress Trac] #46420: Warnings on front-end when trying to display the archive for a non-existent term of a custom taxonomy

WordPress Trac noreply at wordpress.org
Fri May 3 10:58:03 UTC 2019


#46420: Warnings on front-end when trying to display the archive for a non-existent
term of a custom taxonomy
----------------------------------------+-----------------------
 Reporter:  zaantar                     |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  5.3
Component:  Taxonomy                    |     Version:  5.1
 Severity:  minor                       |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  template
----------------------------------------+-----------------------
Changes (by SergeyBiryukov):

 * keywords:   => needs-patch good-first-bug
 * milestone:  Awaiting Review => 5.3


Comment:

 Related: #29660

 Fixed in [25310] for the `is_tag()` check in `feed_links_extra()`, but not
 for `is_tax()`, which was introduced later in [36671].

 The `is_tax()` check should have an `if ( $term )` check as well.

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


More information about the wp-trac mailing list