mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user