Require plugin.php earlier so all pluggables can get at it. Props skeltoac. fixes #15042
git-svn-id: https://develop.svn.wordpress.org/trunk@15811 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
baa3e083c7
commit
3cc3e289d3
@ -66,6 +66,7 @@ wp_set_lang_dir();
|
|||||||
require( ABSPATH . WPINC . '/compat.php' );
|
require( ABSPATH . WPINC . '/compat.php' );
|
||||||
require( ABSPATH . WPINC . '/functions.php' );
|
require( ABSPATH . WPINC . '/functions.php' );
|
||||||
require( ABSPATH . WPINC . '/classes.php' );
|
require( ABSPATH . WPINC . '/classes.php' );
|
||||||
|
require( ABSPATH . WPINC . '/plugin.php' );
|
||||||
|
|
||||||
// Include the wpdb class and, if present, a db.php database drop-in.
|
// Include the wpdb class and, if present, a db.php database drop-in.
|
||||||
require_wp_db();
|
require_wp_db();
|
||||||
@ -77,7 +78,6 @@ wp_set_wpdb_vars();
|
|||||||
wp_start_object_cache();
|
wp_start_object_cache();
|
||||||
|
|
||||||
// Load early WordPress files.
|
// Load early WordPress files.
|
||||||
require( ABSPATH . WPINC . '/plugin.php' );
|
|
||||||
require( ABSPATH . WPINC . '/default-filters.php' );
|
require( ABSPATH . WPINC . '/default-filters.php' );
|
||||||
require( ABSPATH . WPINC . '/pomo/mo.php' );
|
require( ABSPATH . WPINC . '/pomo/mo.php' );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user