[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 04:47:40 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
-----------------------------+----------------------------------------------

Comment(by hakre):

 Replying to [comment:2 mp2300]:
 > At least variables from the core could be declared global.
 >
 > It is a big deal when a object is created in non-global scope and
 assigned by reference to a global variable. The reference is global, but
 the object only exists in the local scope.

 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.

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


More information about the wp-trac mailing list