From 6ae3ebe93bf3ba07cb456993f1e88210fff6e3ff Mon Sep 17 00:00:00 2001 From: ramonjd Date: Tue, 9 Aug 2022 09:34:18 +1000 Subject: [PATCH] Deprecate gutenberg_enqueue_block_support_styles --- lib/compat/wordpress-6.1/script-loader.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/compat/wordpress-6.1/script-loader.php b/lib/compat/wordpress-6.1/script-loader.php index 8a93455b90f897..7ef3b0b7cd7c6f 100644 --- a/lib/compat/wordpress-6.1/script-loader.php +++ b/lib/compat/wordpress-6.1/script-loader.php @@ -19,10 +19,14 @@ * * @link https://core.trac.wordpress.org/ticket/53494. * + * @deprecated 6.1 Block supports styles are now stored for enqueuing via the style engine API. See: packages/style-engine/README.md. + * * @param string $style String containing the CSS styles to be added. * @param int $priority To set the priority for the add_action. */ function gutenberg_enqueue_block_support_styles( $style, $priority = 10 ) { + _deprecated_function( __FUNCTION__, '6.1' ); + $action_hook_name = 'wp_footer'; if ( wp_is_block_theme() ) { $action_hook_name = 'wp_head';