mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Active plugin filter, plugin deactivation array_splice() protection. props apeatling. fixes #10839
git-svn-id: https://develop.svn.wordpress.org/trunk@11966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -552,7 +552,7 @@ if ( get_option('hack_file') ) {
|
||||
require(ABSPATH . 'my-hacks.php');
|
||||
}
|
||||
|
||||
$current_plugins = get_option('active_plugins');
|
||||
$current_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
|
||||
if ( is_array($current_plugins) && !defined('WP_INSTALLING') ) {
|
||||
foreach ( $current_plugins as $plugin ) {
|
||||
// check the $plugin filename
|
||||
|
||||
Reference in New Issue
Block a user