mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
Functional plugin implementation.
git-svn-id: https://develop.svn.wordpress.org/trunk@1010 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+8
-2
@@ -68,6 +68,12 @@ if (get_settings('hack_file')) {
|
||||
require(ABSPATH . '/my-hacks.php');
|
||||
}
|
||||
|
||||
if (!strstr($_SERVER['REQUEST_URI'], 'wp-admin/plugins.php') && 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user