[wp-trac] Re: [WordPress Trac] #2939: Variables set in header.php, footer.php, sidebar.php are not inherited by the rest of the page

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 1 04:56:45 GMT 2006


#2939: Variables set in header.php, footer.php, sidebar.php are not inherited by
the rest of the page
--------------------------+-------------------------------------------------
 Reporter:  technosailor  |        Owner:  anonymous
     Type:  defect        |       Status:  new      
 Priority:  normal        |    Milestone:  2.1      
Component:  Template      |      Version:  2.0.4    
 Severity:  minor         |   Resolution:           
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by nelsonrp):

  * cc:  => reuben-dev at star-bear.com

Comment:

 It's only called twice per page load, so I expect the impact is minimal. I
 created a test script for 100 globals and 100 locals called twice (the
 second call will see 200 globals). On my PowerBook G4 1.5 GHz machine it
 takes 0.03-0.04 seconds. I'm not sure if this is acceptable or not.
 Perhaps making it optional? Notice how in the test script (attached as
 "global-speed.php") I wrap a conditional around the global import/export
 code.

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


More information about the wp-trac mailing list