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

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 5 16:48:13 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:  has-patch needs-unit-tests  |
----------------------------------------+------------------------------

Comment (by wonderboymusic):

 return-by-references need to die everywhere, they are PHP4 fluff. I just
 added them back because I was trying to tighten to scope of my changes.
 The only scenario where they make sense to use is $a =& $b, not $a =&
 my_function();

 Patch has been updated with ret-by-refs removed.

 "we'll need to keep the standard category, post_tag, and link_category
 buckets"  - I took a stab at this, does it accomplish what you want?

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


More information about the wp-trac mailing list