[wp-trac] [WordPress Trac] #4651: get_term_by sanitizes incorrect field when using the slug

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 18 20:01:48 GMT 2007


#4651: get_term_by sanitizes incorrect field when using the slug
--------------------------+-------------------------------------------------
 Reporter:  cavemonkey50  |       Owner:  anonymous  
     Type:  defect        |      Status:  new        
 Priority:  normal        |   Milestone:  2.3 (trunk)
Component:  General       |     Version:  2.3        
 Severity:  normal        |    Keywords:  has-patch  
--------------------------+-------------------------------------------------
 When using get_term_by to get a term by a slug, the results are blank.
 This is due to get_term_by sanitizing the field name instead of the term
 name. The attached patch corrects this problem.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4651>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list