[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 Aug 16 00:23:50 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:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.3
Component:  Taxonomy                             |     Version:  5.1
 Severity:  minor                                |  Resolution:  fixed
 Keywords:  good-first-bug has-patch needs-      |     Focuses:  template
  testing dev-feedback                           |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"45817" 45817]:
 {{{
 #!CommitTicketReference repository="" revision="45817"
 Taxonomy: In `feed_links_extra()` and `get_the_archive_title()`, make sure
 the queried taxonomy term exists before accessing its properties.

 Props donmhico, truchot, zaantar.
 Fixes #46420.
 }}}

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


More information about the wp-trac mailing list