[wp-trac] [WordPress Trac] #34332: Change in `get_term()` return value with mismatched term ID and taxonomy

WordPress Trac noreply at wordpress.org
Fri Oct 16 20:56:08 UTC 2015


#34332: Change in `get_term()` return value with mismatched term ID and taxonomy
--------------------------+---------------------------
 Reporter:  dlh           |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.4
Component:  Taxonomy      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => assigned
 * milestone:  Awaiting Review => 4.4


Comment:

 Ah, thanks for the catch, @dlh. It should be fine to return `null` here.
 (I'd prefer to standardize on `WP_Error`, but I care little enough that
 preserving the previous behavior is probably preferable :) )

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


More information about the wp-trac mailing list