WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/17/2009 07:57:04 PM (11 years ago)
Author:
ryan
Message:

Make sure dir() returned a dir object. for 2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/wp-includes/theme.php

    r12351 r12435  
    354354                } elseif ( is_dir("$template_directory/$file") ) {
    355355                    $template_subdir = @ dir("$template_directory/$file");
     356                    if ( !$template_subdir )
     357                        continue;
    356358                    while ( ($subfile = $template_subdir->read()) !== false ) {
    357359                        if ( preg_match('|^\.+$|', $subfile) )
Note: See TracChangeset for help on using the changeset viewer.