Make WordPress Core

Ticket #20985: fix-file_exists-warning.diff

File fix-file_exists-warning.diff, 671 bytes (added by goldenapples, 13 years ago)
  • wp-includes/theme.php

     
    395395                                foreach ( $sub_dirs as $sub_dir ) {
    396396                                        if ( ! is_dir( $theme_root . '/' . $dir ) || $dir[0] == '.' || $dir == 'CVS' )
    397397                                                continue;
     398                                        if ( ! is_dir( $theme_root . '/' . $dir . '/' . $sub_dir ) )
     399                                                continue;
    398400                                        if ( ! file_exists( $theme_root . '/' . $dir . '/' . $sub_dir . '/style.css' ) )
    399401                                                continue;
    400402                                        $found_themes[ $dir . '/' . $sub_dir ] = array(
     
    16851687                }());
    16861688        </script>
    16871689        <?php
    1688 }
    1689  No newline at end of file
     1690}