[wp-trac] [WordPress Trac] #37707: Change the inclusion of 'plugins.php' to require_once

WordPress Trac noreply at wordpress.org
Fri Aug 19 04:09:56 UTC 2016


#37707: Change the inclusion of 'plugins.php' to require_once
----------------------------+---------------------
 Reporter:  jorbin          |       Owner:  jorbin
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:  4.7
Component:  Bootstrap/Load  |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Changes (by jorbin):

 * owner:   => jorbin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38282"]:
 {{{
 #!CommitTicketReference repository="" revision="38282"
 Bootstrap/Load: Include Plugin API via `require_once`

 Currently, auto-prepended files need to directly modify the globals in
 order to add filters and actions. This is a bad idea. Globals are bad. You
 should never directly interact with the Plugin globals.

 Fixes #37707.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37707#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list