Make WordPress Core

Changeset 6744


Ignore:
Timestamp:
02/06/2008 11:17:13 PM (17 years ago)
Author:
markjaquith
Message:

Make sure the theme_dir is a dir before we attempt to closedir(). fixes #5768

File:
1 edited

Legend:

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

    r6598 r6744  
    176176        }
    177177    }
    178     @closedir($theme_dir);
     178    if ( is_dir( $theme_dir ) )
     179        @closedir( $theme_dir );
    179180
    180181    if ( !$themes_dir || !$theme_files )
Note: See TracChangeset for help on using the changeset viewer.