Changeset 54040
- Timestamp:
- 08/31/2022 04:02:05 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme.php
r53357 r54040 24 24 ); 25 25 26 /** 27 * Original theme directory. 28 * 29 * @var string[] 30 */ 31 private $orig_theme_dir; 32 26 33 public function set_up() { 27 34 global $wp_theme_directories; … … 29 36 parent::set_up(); 30 37 31 $ backup_wp_theme_directories= $wp_theme_directories;32 $wp_theme_directories 38 $this->orig_theme_dir = $wp_theme_directories; 39 $wp_theme_directories = array( WP_CONTENT_DIR . '/themes' ); 33 40 34 41 add_filter( 'extra_theme_headers', array( $this, 'theme_data_extra_headers' ) ); … … 40 47 global $wp_theme_directories; 41 48 42 $wp_theme_directories = $this-> wp_theme_directories;49 $wp_theme_directories = $this->orig_theme_dir; 43 50 44 51 remove_filter( 'extra_theme_headers', array( $this, 'theme_data_extra_headers' ) );
Note: See TracChangeset
for help on using the changeset viewer.