Load plugins even on plugin page.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-08-09 05:42:53 +00:00
parent 6815460232
commit ee4edd73e5

View File

@ -80,8 +80,8 @@ if (get_settings('hack_file')) {
require(ABSPATH . '/my-hacks.php');
}
if (!strstr($_SERVER['PHP_SELF'], 'wp-admin/plugins.php') && get_settings('active_plugins')) {
$current_plugins = explode("\n", (get_settings('active_plugins')));
if ( get_settings('active_plugins') ) {
$current_plugins = explode("\n", get_settings('active_plugins') );
foreach ($current_plugins as $plugin) {
if (file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
include(ABSPATH . 'wp-content/plugins/' . $plugin);