[wp-trac] [WordPress Trac] #11621: phpdoc/docblock improvements cache.php - global variables

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 20 13:30:31 UTC 2010


#11621: phpdoc/docblock improvements cache.php - global variables
-------------------------+--------------------------------------------------
 Reporter:  hakre        |       Owner:                        
     Type:  enhancement  |      Status:  new                   
 Priority:  normal       |   Milestone:  3.0                   
Component:  Inline Docs  |     Version:  2.9                   
 Severity:  normal       |    Keywords:  has-patch dev-feedback
-------------------------+--------------------------------------------------

Comment(by nacin):

 Ok, didn't see that you were pulling it out of the initial patch.

 You can't include phpdoc inside of a function, it doesn't work. Other
 changes look okay though, but in order for @global to work, the global
 needs to be documented elsewhere. Otherwise you need to specify
 $GLOBALS['var']. The link in the ticket description explains this.

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


More information about the wp-trac mailing list