Skip to content

Commit

Permalink
Deprecate wp_enqueue_block_support_styles
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Feb 7, 2023
1 parent e88660b commit 851c78c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wp-includes/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -2989,6 +2989,7 @@ function wp_enqueue_global_styles_css_custom_properties() {
*
* @since 5.9.1
* @since 6.1.0 Added the `$priority` parameter.
* @deprecated 6.2.0 Use wp_style_engine_get_stylesheet_from_css_rules() instead.
*
* For block themes, styles are loaded in the head.
* For classic ones, styles are loaded in the body because the wp_head action happens before render_block.
Expand All @@ -2999,6 +3000,7 @@ function wp_enqueue_global_styles_css_custom_properties() {
* @param int $priority To set the priority for the add_action.
*/
function wp_enqueue_block_support_styles( $style, $priority = 10 ) {
_deprecated_function( __FUNCTION__, '6.2.0', 'wp_style_engine_get_stylesheet_from_css_rules()' );
$action_hook_name = 'wp_footer';
if ( wp_is_block_theme() ) {
$action_hook_name = 'wp_head';
Expand Down

0 comments on commit 851c78c

Please sign in to comment.