mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Allow plugins to be loaded from subdirs of wp-content/plugins.
git-svn-id: https://develop.svn.wordpress.org/trunk@1894 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -54,7 +54,7 @@ require(ABSPATH . '/wp-admin/menu.php');
|
||||
|
||||
// Handle plugin admin pages.
|
||||
if (isset($_GET['page'])) {
|
||||
$plugin_page = basename($_GET['page']);
|
||||
$plugin_page = plugin_basename($_GET['page']);
|
||||
if (! file_exists(ABSPATH . "wp-content/plugins/$plugin_page")) {
|
||||
die(sprintf(__('Cannot load %s.'), $plugin_page));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user