Changeset 47219 for trunk/src/wp-includes/theme.php
- Timestamp:
- 02/09/2020 04:52:28 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r47198 r47219 501 501 } 502 502 foreach ( $dirs as $dir ) { 503 if ( ! is_dir( $theme_root . '/' . $dir ) || $dir[0] == '.' || $dir == 'CVS') {503 if ( ! is_dir( $theme_root . '/' . $dir ) || '.' === $dir[0] || 'CVS' === $dir ) { 504 504 continue; 505 505 } … … 521 521 } 522 522 foreach ( $sub_dirs as $sub_dir ) { 523 if ( ! is_dir( $theme_root . '/' . $dir . '/' . $sub_dir ) || $dir[0] == '.' || $dir == 'CVS') {523 if ( ! is_dir( $theme_root . '/' . $dir . '/' . $sub_dir ) || '.' === $dir[0] || 'CVS' === $dir ) { 524 524 continue; 525 525 } … … 554 554 } 555 555 556 if ( $theme_roots != get_site_transient( 'theme_roots' )) {556 if ( get_site_transient( 'theme_roots' ) != $theme_roots ) { 557 557 set_site_transient( 'theme_roots', $theme_roots, $cache_expiration ); 558 558 } … … 1649 1649 $color = get_background_color(); 1650 1650 1651 if ( $color === get_theme_support( 'custom-background', 'default-color' )) {1651 if ( get_theme_support( 'custom-background', 'default-color' ) === $color ) { 1652 1652 $color = false; 1653 1653 }
Note: See TracChangeset
for help on using the changeset viewer.