WordPress.org

Make WordPress Core

Changeset 20551


Ignore:
Timestamp:
04/20/12 13:22:54 (2 years ago)
Author:
nacin
Message:

If a cached theme root is no longer registered, skip it. Assume the cache is out of date. see #20103.

File:
1 edited

Legend:

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

    r20524 r20551  
    341341        if ( is_array( $cached_roots ) ) { 
    342342            foreach ( $cached_roots as $theme_dir => $theme_root ) { 
     343                // A cached theme root is no longer around, so skip it. 
     344                if ( ! isset( $relative_theme_roots[ $theme_root ] ) ) 
     345                    continue; 
    343346                $found_themes[ $theme_dir ] = array( 
    344347                    'theme_file' => $theme_dir . '/style.css', 
Note: See TracChangeset for help on using the changeset viewer.