Ticket #20985: fix-file_exists-warning.diff
File fix-file_exists-warning.diff, 671 bytes (added by , 13 years ago) |
---|
-
wp-includes/theme.php
395 395 foreach ( $sub_dirs as $sub_dir ) { 396 396 if ( ! is_dir( $theme_root . '/' . $dir ) || $dir[0] == '.' || $dir == 'CVS' ) 397 397 continue; 398 if ( ! is_dir( $theme_root . '/' . $dir . '/' . $sub_dir ) ) 399 continue; 398 400 if ( ! file_exists( $theme_root . '/' . $dir . '/' . $sub_dir . '/style.css' ) ) 399 401 continue; 400 402 $found_themes[ $dir . '/' . $sub_dir ] = array( … … 1685 1687 }()); 1686 1688 </script> 1687 1689 <?php 1688 } 1689 No newline at end of file 1690 }