Make WordPress Core

Changeset 25376


Ignore:
Timestamp:
09/12/2013 04:13:11 AM (13 years ago)
Author:
wonderboymusic
Message:

Avoid an undefined index error in tests/phpunit/tests/dependencies/styles.php

See #25282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/styles.php

    r25002 r25376  
    99        function setUp() {
    1010                parent::setUp();
     11                if ( empty( $GLOBALS['wp_styles'] ) )
     12                        $GLOBALS['wp_styles'] = null;
    1113                $this->old_wp_styles = $GLOBALS['wp_styles'];
    1214                remove_action( 'wp_default_styles', 'wp_default_styles' );
Note: See TracChangeset for help on using the changeset viewer.