[wp-trac] [WordPress Trac] #11549: Enable loading of the WordPress environment from external php script

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 28 12:26:45 UTC 2009


#11549: Enable loading of the WordPress environment from external php script
-----------------------------+----------------------------------------------
 Reporter:  mp2300           |       Owner:                   
     Type:  feature request  |      Status:  new              
 Priority:  normal           |   Milestone:  Future Release   
Component:  General          |     Version:                   
 Severity:  minor            |    Keywords:  needs-patch close
-----------------------------+----------------------------------------------
Changes (by mp2300):

 * cc: mp2300 (added)


Comment:

 Replying to [comment:3 hakre]:
 > use in your function teh $GLOBALS superglobal array and store your
 reference in there. Then you do not have that problem as discribben in the
 PHP manual.

 Thanks. Using $GLOBAL seems to solve the assign by reference problem with
 the deprecated syntax.
 Unfortunately the problem is not it my own code, but in WordPress. If all
 global variables in WordPress were declared in $GLOBAL, then it would be
 possible to load the WordPress enviroment from a local scope.

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


More information about the wp-trac mailing list