mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Use square brackets instead of braces for string access. props hakre, fixes #13900.
git-svn-id: https://develop.svn.wordpress.org/trunk@16340 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -597,7 +597,7 @@ function search_theme_directories() {
|
||||
|
||||
while ( ($theme_dir = readdir($themes_dir)) !== false ) {
|
||||
if ( is_dir($theme_root . '/' . $theme_dir) && is_readable($theme_root . '/' . $theme_dir) ) {
|
||||
if ( $theme_dir{0} == '.' || $theme_dir == 'CVS' )
|
||||
if ( $theme_dir[0] == '.' || $theme_dir == 'CVS' )
|
||||
continue;
|
||||
|
||||
$stylish_dir = @opendir($theme_root . '/' . $theme_dir);
|
||||
@@ -620,7 +620,7 @@ function search_theme_directories() {
|
||||
$found_subdir_themes = false;
|
||||
while ( ($theme_subdir = readdir($theme_subdirs)) !== false ) {
|
||||
if ( is_dir( $subdir . '/' . $theme_subdir) && is_readable($subdir . '/' . $theme_subdir) ) {
|
||||
if ( $theme_subdir{0} == '.' || $theme_subdir == 'CVS' )
|
||||
if ( $theme_subdir[0] == '.' || $theme_subdir == 'CVS' )
|
||||
continue;
|
||||
|
||||
$stylish_dir = @opendir($subdir . '/' . $theme_subdir);
|
||||
|
||||
Reference in New Issue
Block a user