Skip to content

Commit

Permalink
Deprecate wp_global_styles_render_svg_filters and wp_get_global_style…
Browse files Browse the repository at this point in the history
…s_svg_filters
  • Loading branch information
ajlende committed Jun 27, 2023
1 parent 78caa27 commit 1a8b543
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wp-includes/global-styles-and-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,13 @@ function wp_get_global_styles_custom_css() {
* Returns a string containing the SVGs to be referenced as filters (duotone).
*
* @since 5.9.1
* @deprecated 6.3.0 SVG generation is handled on a per-block basis in block supports.
*
* @return string
*/
function wp_get_global_styles_svg_filters() {
_deprecated_function( __FUNCTION__, '6.3.0' );

/*
* Ignore cache when the development mode is set to 'theme', so it doesn't interfere with the theme
* developer's workflow.
Expand Down
3 changes: 3 additions & 0 deletions src/wp-includes/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -2488,8 +2488,11 @@ function wp_enqueue_global_styles_custom_css() {
* in the body to satisfy Safari's rendering quirks.
*
* @since 5.9.1
* @deprecated 6.3.0 SVG generation is handled on a per-block basis in block supports.
*/
function wp_global_styles_render_svg_filters() {
_deprecated_function( __FUNCTION__, '6.3.0' );

/*
* When calling via the in_admin_header action, we only want to render the
* SVGs on block editor pages.
Expand Down

0 comments on commit 1a8b543

Please sign in to comment.