WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/25/2016 11:05:17 AM (5 years ago)
Author:
pento
Message:

Tests: Fix a PHP notice introduced in [38907].

WP_DEFAULT_THEME was being defined in the wrong location.

Also, if WordPress has the original "default" theme installed, ensure that our test theme overrides it.

Props swissspidy for daring to dive into Themes of WordPress Past.
See #31550, #38457.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/bootstrap.php

    r38907 r38908  
    5454$phpmailer = new MockPHPMailer();
    5555
    56 // Set the theme to our special empty theme, to avoid interference from the current Twenty* theme.
    5756if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
    5857    define( 'WP_DEFAULT_THEME', 'default' );
Note: See TracChangeset for help on using the changeset viewer.