Changeset 25254 for trunk/tests/phpunit/tests/admin/includesTheme.php
- Timestamp:
- 09/05/2013 04:33:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesTheme.php
r25002 r25254 11 11 $GLOBALS['wp_theme_directories'] = array( WP_CONTENT_DIR . '/themes', $this->theme_root ); 12 12 13 add_filter('theme_root', array( &$this, '_theme_root'));14 add_filter( 'stylesheet_root', array( &$this, '_theme_root') );15 add_filter( 'template_root', array( &$this, '_theme_root') );13 add_filter('theme_root', array($this, '_theme_root')); 14 add_filter( 'stylesheet_root', array($this, '_theme_root') ); 15 add_filter( 'template_root', array($this, '_theme_root') ); 16 16 17 17 // clear caches … … 22 22 function tearDown() { 23 23 $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir; 24 remove_filter('theme_root', array( &$this, '_theme_root'));25 remove_filter( 'stylesheet_root', array( &$this, '_theme_root') );26 remove_filter( 'template_root', array( &$this, '_theme_root') );24 remove_filter('theme_root', array($this, '_theme_root')); 25 remove_filter( 'stylesheet_root', array($this, '_theme_root') ); 26 remove_filter( 'template_root', array($this, '_theme_root') ); 27 27 28 28 wp_clean_themes_cache();
Note: See TracChangeset
for help on using the changeset viewer.