[wp-trac] [WordPress Trac] #18076: get_term() should never query for term_id = 0

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 24 10:39:53 UTC 2011


#18076: get_term() should never query for term_id = 0
------------------------------------------+---------------------
 Reporter:  mdawaffe                      |       Owner:  westi
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  3.3
Component:  General                       |     Version:  3.2
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  westi-likes has-patch commit  |
------------------------------------------+---------------------
Changes (by westi):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [18591]:
 {{{
 #!CommitTicketReference repository="" revision="18591"
 Optimise get_term to not query for term_id = 0. Also improve the prepared
 query to use %d for the term_id.
 Fixes #18076 props mdawaffe.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18076#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list