WordPress.org

Make WordPress Core

Changeset 12434


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

Make sure dir() returned a dir object.

File:
1 edited

Legend:

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

    r12351 r12434  
    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.