Make sure plugins and themes are readable. Props Mike Little. fixes #1502
git-svn-id: http://svn.automattic.com/wordpress/trunk@3103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1449,6 +1449,9 @@ function get_plugins() {
|
||||
sort($plugin_files);
|
||||
|
||||
foreach ($plugin_files as $plugin_file) {
|
||||
if ( !is_readable("$plugin_root/$plugin_file"))
|
||||
continue;
|
||||
|
||||
$plugin_data = get_plugin_data("$plugin_root/$plugin_file");
|
||||
|
||||
if (empty ($plugin_data['Name'])) {
|
||||
|
||||
Reference in New Issue
Block a user