[wp-trac] [WordPress Trac] #16464: get_term_by() returns WP_Error as well

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 22 20:07:53 UTC 2011

#16464: get_term_by() returns WP_Error as well
 Reporter:  hakre                |       Owner:
     Type:  defect (bug)         |      Status:  closed
 Priority:  normal               |   Milestone:  3.1.1
Component:  Warnings/Notices     |     Version:  3.0
 Severity:  normal               |  Resolution:  fixed
 Keywords:  has-patch 3.2-early  |

Comment (by automattor):

 (In [17527]) Return false instead of WP_Error from get_term_by() if the
 term does not exist. Makes fetching a term by id consistent with slug and
 name. Props hakre. fixes #16464 #16717 for 3.1

Ticket URL: <http://core.trac.wordpress.org/ticket/16464#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list