mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38282 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,7 +20,7 @@ define( 'WPINC', 'wp-includes' );
|
||||
// Include files required for initialization.
|
||||
require( ABSPATH . WPINC . '/load.php' );
|
||||
require( ABSPATH . WPINC . '/default-constants.php' );
|
||||
require( ABSPATH . WPINC . '/plugin.php' );
|
||||
require_once( ABSPATH . WPINC . '/plugin.php' );
|
||||
|
||||
/*
|
||||
* These can't be directly globalized in version.php. When updating,
|
||||
|
||||
Reference in New Issue
Block a user