Make WordPress Core


Ignore:
Timestamp:
08/30/2015 09:44:38 PM (11 years ago)
Author:
obenland
Message:

Themes: Get the correct theme when template and stylesheet were both passed as arguments.

Fixes a bug where $new_theme got set before the second argument was
appropriately handled, causing the current_theme option to later always be
updated to the parent theme's name.

Introduced in [21131].

Props obenland, wonderboymusic.
Fixes #32635.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme.php

    r29952 r33815  
    8686                // Generic tests that should hold true for any theme
    8787                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
    8893                        $this->assertEquals( $theme['Name'], $k );
    8994                        $this->assertNotEmpty( $theme['Title'] );
Note: See TracChangeset for help on using the changeset viewer.