@@ -1049,6 +1049,8 @@ function() {
1049
1049
$ this ->assertFalse ( has_action ( 'wp_head ' , $ callback ) );
1050
1050
}
1051
1051
1052
+ // Avoid running deprecated `print_emoji_styles()` while printing styles.
1053
+ // @see <https://core.trac.wordpress.org/ticket/58775>.
1052
1054
remove_action ( 'wp_print_styles ' , 'print_emoji_styles ' );
1053
1055
1054
1056
ob_start ();
@@ -1194,6 +1196,9 @@ public function test_filter_admin_bar_style_loader_tag( $setup_callback, $assert
1194
1196
add_filter ( 'amp_dev_mode_enabled ' , '__return_true ' );
1195
1197
add_filter ( 'style_loader_tag ' , [ AMP_Theme_Support::class, 'filter_admin_bar_style_loader_tag ' ], 10 , 2 );
1196
1198
$ setup_callback ();
1199
+
1200
+ // Avoid running deprecated `print_emoji_styles()` while printing styles.
1201
+ // @see <https://core.trac.wordpress.org/ticket/58775>.
1197
1202
remove_action ( 'wp_print_styles ' , 'print_emoji_styles ' );
1198
1203
ob_start ();
1199
1204
echo '<html><head> ' ;
@@ -1316,6 +1321,8 @@ public function test_init_admin_bar_for_directly_enqueued_dashicons() {
1316
1321
// Enqueued directly.
1317
1322
wp_enqueue_style ( 'dashicons ' );
1318
1323
1324
+ // Avoid running deprecated `print_emoji_styles()` while printing styles.
1325
+ // @see <https://core.trac.wordpress.org/ticket/58775>.
1319
1326
remove_action ( 'wp_print_styles ' , 'print_emoji_styles ' );
1320
1327
1321
1328
ob_start ();
@@ -1344,6 +1351,8 @@ public function test_init_admin_bar_for_indirectly_enqueued_dashicons() {
1344
1351
// Enqueued indirectly.
1345
1352
wp_enqueue_style ( 'my-font-pack ' , 'https://example.com/fonts ' , [ 'dashicons ' ], '0.1 ' );
1346
1353
1354
+ // Avoid running deprecated `print_emoji_styles()` while printing styles.
1355
+ // @see <https://core.trac.wordpress.org/ticket/58775>.
1347
1356
remove_action ( 'wp_print_styles ' , 'print_emoji_styles ' );
1348
1357
1349
1358
ob_start ();
0 commit comments