We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b7fcef commit 4bb884dCopy full SHA for 4bb884d
tests/phpunit/tests/dependencies/styles.php
@@ -359,12 +359,12 @@ public function test_unnecessary_style_tags() {
359
* @expectedDeprecated WP_Dependencies->add_data()
360
*/
361
public function test_conditional_inline_styles_are_also_conditional() {
362
- $expected = '';
363
wp_enqueue_style( 'handle', 'http://example.com', array(), 1 );
364
wp_style_add_data( 'handle', 'conditional', 'IE' );
365
wp_add_inline_style( 'handle', 'a { color: blue; }' );
366
367
- $this->assertSameIgnoreEOL( $expected, get_echo( 'wp_print_styles' ) );
+ // Conditional styles are disabled.
+ $this->assertSame( '', get_echo( 'wp_print_styles' ) );
368
}
369
370
/**
0 commit comments