Make WordPress Core


Ignore:
Timestamp:
11/13/2010 09:53:55 AM (16 years ago)
Author:
nacin
Message:

Use square brackets instead of braces for string access. props hakre, fixes #13900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r16174 r16340  
    598598                while ( ($theme_dir = readdir($themes_dir)) !== false ) {
    599599                        if ( is_dir($theme_root . '/' . $theme_dir) && is_readable($theme_root . '/' . $theme_dir) ) {
    600                                 if ( $theme_dir{0} == '.' || $theme_dir == 'CVS' )
     600                                if ( $theme_dir[0] == '.' || $theme_dir == 'CVS' )
    601601                                        continue;
    602602
    … …  
    621621                                        while ( ($theme_subdir = readdir($theme_subdirs)) !== false ) {
    622622                                                if ( is_dir( $subdir . '/' . $theme_subdir) && is_readable($subdir . '/' . $theme_subdir) ) {
    623                                                         if ( $theme_subdir{0} == '.' || $theme_subdir == 'CVS' )
     623                                                        if ( $theme_subdir[0] == '.' || $theme_subdir == 'CVS' )
    624624                                                                continue;
    625625
Note: See TracChangeset for help on using the changeset viewer.