Skip to content

Commit

Permalink
Deprecate gutenberg_enqueue_block_support_styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Sep 27, 2022
1 parent 13be712 commit 6ae3ebe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/compat/wordpress-6.1/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 6ae3ebe

Please sign in to comment.