Changeset 25264 for trunk/tests/phpunit/tests/theme.php
- Timestamp:
- 09/05/2013 09:56:10 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme.php
r25002 r25264 175 175 $themes = get_themes(); 176 176 177 $switch_theme_one_argument = version_compare( $GLOBALS['wp_version'], '3.5-alpha-21103', '>=' );178 179 // switch to each theme in sequence180 // do it twice to make sure we switch to the first theme, even if it's our starting theme 177 // Switch to each theme in sequence. 178 // Do it twice to make sure we switch to the first theme, even if it's our starting theme. 179 // Do it a third time to ensure switch_theme() works with one argument. 180 181 181 for ( $i = 0; $i < 3; $i++ ) { 182 182 foreach ($themes as $name=>$theme) { 183 183 // switch to this theme 184 if ( $i === 2 || $switch_theme_one_argument)184 if ( $i === 2 ) 185 185 switch_theme( $theme['Template'], $theme['Stylesheet'] ); 186 186 else
Note: See TracChangeset
for help on using the changeset viewer.