mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +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:
@@ -1686,6 +1686,11 @@ function get_themes() {
|
||||
sort($theme_files);
|
||||
|
||||
foreach($theme_files as $theme_file) {
|
||||
if ( ! is_readable("$theme_root/$theme_file") ) {
|
||||
$wp_broken_themes[$theme_file] = array('Name' => $theme_file, 'Title' => $theme_file, 'Description' => __('File not readable.'));
|
||||
continue;
|
||||
}
|
||||
|
||||
$theme_data = get_theme_data("$theme_root/$theme_file");
|
||||
|
||||
$name = $theme_data['Name'];
|
||||
|
||||
Reference in New Issue
Block a user