Load plugins even on plugin page.
git-svn-id: https://develop.svn.wordpress.org/trunk@1521 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0db54c74a2
commit
95febc82bf
@ -80,8 +80,8 @@ if (get_settings('hack_file')) {
|
|||||||
require(ABSPATH . '/my-hacks.php');
|
require(ABSPATH . '/my-hacks.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strstr($_SERVER['PHP_SELF'], 'wp-admin/plugins.php') && get_settings('active_plugins')) {
|
if ( get_settings('active_plugins') ) {
|
||||||
$current_plugins = explode("\n", (get_settings('active_plugins')));
|
$current_plugins = explode("\n", get_settings('active_plugins') );
|
||||||
foreach ($current_plugins as $plugin) {
|
foreach ($current_plugins as $plugin) {
|
||||||
if (file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
if (file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
|
||||||
include(ABSPATH . 'wp-content/plugins/' . $plugin);
|
include(ABSPATH . 'wp-content/plugins/' . $plugin);
|
||||||
|
Loading…
Reference in New Issue
Block a user