WordPress.org

Make WordPress Core

Changeset 821 in tests


Ignore:
Timestamp:
06/30/12 21:53:45 (22 months ago)
Author:
nacin
Message:

Unset $wp_themes whenever we call wp_clean_themes_cache(). see #92.

Location:
trunk/wp-testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testcase/test_admin_includes_theme.php

    r814 r821  
    1717        // clear caches 
    1818        wp_clean_themes_cache(); 
     19        unset( $GLOBALS['wp_themes'] ); 
    1920    } 
    2021 
     
    2627 
    2728        wp_clean_themes_cache(); 
     29        unset( $GLOBALS['wp_themes'] ); 
    2830        parent::tearDown(); 
    2931    } 
  • trunk/wp-testcase/test_includes_class-wp-theme.php

    r814 r821  
    2525        remove_filter( 'template_root', array(&$this, '_theme_root') ); 
    2626        wp_clean_themes_cache(); 
     27        unset( $GLOBALS['wp_themes'] ); 
    2728        parent::tearDown(); 
    2829    } 
Note: See TracChangeset for help on using the changeset viewer.