Turn hard-coded paths to defines. Pull gettext includes int wp-settings. Props mdawaffe. fixes #3157
git-svn-id: http://svn.automattic.com/wordpress/trunk@4202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1721,8 +1721,7 @@ function get_plugins() {
|
||||
}
|
||||
|
||||
$wp_plugins = array ();
|
||||
$plugin_loc = 'wp-content/plugins';
|
||||
$plugin_root = ABSPATH.$plugin_loc;
|
||||
$plugin_root = ABSPATH . PLUGINDIR;
|
||||
|
||||
// Files in wp-content/plugins directory
|
||||
$plugins_dir = @ dir($plugin_root);
|
||||
|
||||
Reference in New Issue
Block a user