Active plugin filter, plugin deactivation array_splice() protection. props apeatling. fixes #10839

git-svn-id: http://svn.automattic.com/wordpress/trunk@11966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith
2009-09-24 04:15:37 +00:00
parent 48932f96fe
commit c664315b01
2 changed files with 9 additions and 4 deletions

View File

@@ -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