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

WordPress Trac noreply at wordpress.org
Wed Aug 24 09:16:31 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:  commit        |     Focuses:
--------------------------+---------------------------

Comment (by boonebgorges):

 @jeremyfelt Thanks for the review.

 @rpayne7264 Thanks for the suggestion. There has been discussion in the
 past about this kind of check in `wp_list_pluck()`, but the general sense
 is that the PHP notice is a good indicator for developers that they've
 done something wrong, and should not be silenced. See #35087.

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


More information about the wp-trac mailing list