[wp-trac] Re: [WordPress Trac] #4062: Implicit global var references in menu-header.php

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 31 20:40:12 GMT 2007


#4062: Implicit global var references in menu-header.php
----------------------------+-----------------------------------------------
 Reporter:  rgovostes       |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  low             |    Milestone:  2.4      
Component:  Administration  |      Version:  2.1.2    
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by rob1n):

 * cc: rob1n (added)

Comment:

 Why? My understanding of PHP is that any code in the global scope uses
 global variables. Only in functions and classes do you have to explicitly
 declare global variables.

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


More information about the wp-trac mailing list