[wp-trac] [WordPress Trac] #37721: improve error handling of is_object_in_term in taxonomy.php

WordPress Trac noreply at wordpress.org
Sun Aug 21 22:14:15 UTC 2016


#37721: improve error handling of is_object_in_term in taxonomy.php
--------------------------+---------------------------
 Reporter:  rpayne7264    |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.6.1
Component:  Taxonomy      |     Version:  4.6
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+---------------------------

Comment (by sc0ttkclark):

 Starting to run into this on live sites too, where code was calling
 has_term() for a previously non-existing taxonomy. Of course that's bad
 practice, running code like that, but leftover code from long ago started
 fatal erroring a whole site can be scary for folks with less dev skills to
 track down what was going on :)

 Definitely need this in 4.6.1

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


More information about the wp-trac mailing list