mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Make sure plugins and themes are readable. Props Mike Little. fixes #1502
git-svn-id: https://develop.svn.wordpress.org/trunk@3103 602fd350-edb4-49c9-b593-d223f7449a82
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