mirror of
git://develop.git.wordpress.org/
synced 2025-03-13 16:39:48 +01:00
When looking in a sub-directory of wp-content/themes for more themes, check
if that specific directory exists before looking inside of it for style.css. This avoids warnings when open_basedir restrictions are in effect. props goldenapples. fixes #20985 for 3.4. git-svn-id: https://develop.svn.wordpress.org/branches/3.4@21127 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba2d74e52c
commit
2d9921b5e7
@ -381,7 +381,7 @@ function search_theme_directories( $force = false ) {
|
||||
if ( ! $sub_dirs )
|
||||
return false;
|
||||
foreach ( $sub_dirs as $sub_dir ) {
|
||||
if ( ! is_dir( $theme_root . '/' . $dir ) || $dir[0] == '.' || $dir == 'CVS' )
|
||||
if ( ! is_dir( $theme_root . '/' . $dir . '/' . $sub_dir ) || $dir[0] == '.' || $dir == 'CVS' )
|
||||
continue;
|
||||
if ( ! file_exists( $theme_root . '/' . $dir . '/' . $sub_dir . '/style.css' ) )
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user