Sitewide plugins cleanup. Props nacin. see #11644

git-svn-id: https://develop.svn.wordpress.org/trunk@12947 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-02-04 18:50:36 +00:00
parent 529156a002
commit 3bc5c8975b
3 changed files with 14 additions and 12 deletions

View File

@@ -403,12 +403,7 @@ function wp_load_mu_plugins() {
*/
function wp_load_plugins() {
$plugins = array();
// Check for hacks file if the option is enabled
if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) )
$plugins[] = ABSPATH . 'my-hacks.php';
$active_plugins = (array) apply_filters( 'active_plugins', get_option( 'active_plugins', array() ) );
$active_plugins = (array) get_option( 'active_plugins', array() );
// Get active network plugins
if ( is_multisite() ) {
@@ -419,6 +414,12 @@ function wp_load_plugins() {
}
}
// Check for hacks file if the option is enabled
if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) {
_deprecated_file( 'my-hacks.php', '1.5' );
array_unshift( $plugins, ABSPATH . 'my-hacks.php' );
}
if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) )
return $plugins;