diff --git a/lib/compat/wordpress-6.3/script-loader.php b/lib/compat/wordpress-6.3/script-loader.php index 89149f3a753140..9cbd3771ee328b 100644 --- a/lib/compat/wordpress-6.3/script-loader.php +++ b/lib/compat/wordpress-6.3/script-loader.php @@ -79,9 +79,13 @@ function _gutenberg_get_iframed_editor_assets() { } } + // Remove the deprecated `print_emoji_styles` handler. + // It avoids breaking style generation with a deprecation message. + remove_action( 'wp_print_styles', 'print_emoji_styles' ); ob_start(); wp_print_styles(); $styles = ob_get_clean(); + add_action( 'wp_print_styles', 'print_emoji_styles' ); ob_start(); wp_print_head_scripts(); diff --git a/lib/compat/wordpress-6.4/script-loader.php b/lib/compat/wordpress-6.4/script-loader.php index 0f90494927c725..9cea0547e61bce 100644 --- a/lib/compat/wordpress-6.4/script-loader.php +++ b/lib/compat/wordpress-6.4/script-loader.php @@ -158,9 +158,13 @@ function _gutenberg_get_iframed_editor_assets_6_4() { } } + // Remove the deprecated `print_emoji_styles` handler. + // It avoids breaking style generation with a deprecation message. + remove_action( 'wp_print_styles', 'print_emoji_styles' ); ob_start(); wp_print_styles(); $styles = ob_get_clean(); + add_action( 'wp_print_styles', 'print_emoji_styles' ); ob_start(); wp_print_head_scripts(); diff --git a/packages/e2e-tests/specs/editor/various/datepicker.test.js b/packages/e2e-tests/specs/editor/various/datepicker.test.js index b0fc3bf898d4a4..057418d3eacc38 100644 --- a/packages/e2e-tests/specs/editor/various/datepicker.test.js +++ b/packages/e2e-tests/specs/editor/various/datepicker.test.js @@ -61,7 +61,9 @@ async function getPublishingDate() { ); } -describe.each( [ [ 'UTC-10' ], [ 'UTC' ], [ 'UTC+10' ] ] )( +// @todo: Change `UTC+1` back to `UTC` once the core regressions is resolved. +// See: https://github.com/WordPress/gutenberg/pull/54806#issuecomment-1734840171. +describe.each( [ [ 'UTC-10' ], [ 'UTC+1' ], [ 'UTC+10' ] ] )( `Datepicker %s`, ( timezone ) => { let oldTimezone; diff --git a/packages/e2e-tests/specs/editor/various/scheduling.test.js b/packages/e2e-tests/specs/editor/various/scheduling.test.js index 61c3541c1f47e5..87cc6e52a048c7 100644 --- a/packages/e2e-tests/specs/editor/various/scheduling.test.js +++ b/packages/e2e-tests/specs/editor/various/scheduling.test.js @@ -23,7 +23,9 @@ describe( 'Scheduling', () => { } ); }; - describe.each( [ [ 'UTC-10' ], [ 'UTC' ], [ 'UTC+10' ] ] )( + // @todo: Change `UTC+1` back to `UTC` once the core regressions is resolved. + // See: https://github.com/WordPress/gutenberg/pull/54806#issuecomment-1734840171. + describe.each( [ [ 'UTC-10' ], [ 'UTC+1' ], [ 'UTC+10' ] ] )( `Timezone %s`, ( timezone ) => { let oldTimezone; diff --git a/phpunit/experimental/block-editor-settings-mobile-test.php b/phpunit/experimental/block-editor-settings-mobile-test.php index 224fb4bfcb188b..907b750d8c8638 100644 --- a/phpunit/experimental/block-editor-settings-mobile-test.php +++ b/phpunit/experimental/block-editor-settings-mobile-test.php @@ -24,6 +24,7 @@ class Gutenberg_REST_Block_Editor_Settings_Controller_Test extends WP_Test_REST_ public function set_up() { parent::set_up(); switch_theme( 'block-theme' ); + remove_action( 'wp_print_styles', 'print_emoji_styles' ); } /**