[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:06:42 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 |
---------------------------------+---------------------
Changes (by ryan):
* status: new => closed
* resolution: => fixed
Comment:
(In [17526]) 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 trunk
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16464#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list