Make sure plugin is a file before loading. Props filosofo. fixes #5822

git-svn-id: https://develop.svn.wordpress.org/trunk@6897 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-18 17:42:51 +00:00
parent 5e246a6c45
commit 9b7fadbb2f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if (isset($plugin_page)) {
wp_die(__('Invalid plugin page'));
}
if (! file_exists(ABSPATH . PLUGINDIR . "/$plugin_page"))
if (! ( file_exists(ABSPATH . PLUGINDIR . "/$plugin_page") && is_file( ABSPATH . PLUGINDIR . "/$plugin_page") ) )
wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
do_action('load-' . $plugin_page);