[wp-trac] [WordPress Trac] #19941: Post template perf: return string instead of setting then return

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 1 19:04:02 UTC 2012


#19941: Post template perf: return string instead of setting then return
--------------------------+------------------------------
 Reporter:  niallkennedy  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Performance   |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by nacin):

 I wouldn't really call it "performance" but it is indeed good practice to
 not create a variable you only use once.

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


More information about the wp-trac mailing list