Changeset 33815
- Timestamp:
- 08/30/2015 09:44:38 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r33808 r33815 691 691 $nav_menu_locations = get_theme_mod( 'nav_menu_locations' ); 692 692 693 $old_theme = wp_get_theme(); 693 if ( func_num_args() > 1 ) { 694 $stylesheet = func_get_arg( 1 ); 695 } 696 697 $old_theme = wp_get_theme(); 694 698 $new_theme = wp_get_theme( $stylesheet ); 695 696 if ( func_num_args() > 1 ) { 697 $template = $stylesheet; 698 $stylesheet = func_get_arg( 1 ); 699 } else { 700 $template = $new_theme->get_template(); 701 } 699 $template = $new_theme->get_template(); 702 700 703 701 update_option( 'template', $template ); -
trunk/tests/phpunit/tests/theme.php
r29952 r33815 86 86 // Generic tests that should hold true for any theme 87 87 foreach ( $themes as $k => $theme ) { 88 // Don't run these checks for custom themes. 89 if ( empty( $theme['Author'] ) || false === strpos( $theme['Author'], 'WordPress' ) ) { 90 continue; 91 } 92 88 93 $this->assertEquals( $theme['Name'], $k ); 89 94 $this->assertNotEmpty( $theme['Title'] );
Note: See TracChangeset
for help on using the changeset viewer.