Require plugin.php earlier so all pluggables can get at it. Props skeltoac. fixes #15042
git-svn-id: http://svn.automattic.com/wordpress/trunk@15811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1cce7d7830
commit
34a285606b
|
@ -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