Avoid an undefined index error in tests/phpunit/tests/dependencies/styles.php
See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@25376 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
148d8e1e29
commit
62b7214706
@ -8,6 +8,8 @@ class Tests_Dependencies_Styles extends WP_UnitTestCase {
|
||||
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
if ( empty( $GLOBALS['wp_styles'] ) )
|
||||
$GLOBALS['wp_styles'] = null;
|
||||
$this->old_wp_styles = $GLOBALS['wp_styles'];
|
||||
remove_action( 'wp_default_styles', 'wp_default_styles' );
|
||||
$GLOBALS['wp_styles'] = new WP_Styles();
|
||||
|
Loading…
x
Reference in New Issue
Block a user