[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 1 02:26:10 UTC 2012


#21760: get_term_by() calls are not cached
----------------------------+------------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Taxonomy        |     Version:  2.3
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+------------------------------

Comment (by dd32):

 FWIW, by overloading `get_term( $id ...` to accept `int|string|object`, it
 brings up conditions where
  * Slug is numeric
  * a term_id is passed in, but return term_ids as strings in some
 locations, so you can't rely upon type being an int for term_ids

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


More information about the wp-trac mailing list