Coding Standards: Replace usage of deprecated `wp_get_duotone_filter_svg()`.
This updates `WP_Theme_JSON::get_svg_filters()` to use `WP_Duotone::get_filter_svg_from_preset()` instead of the `wp_get_duotone_filter_svg()` function, deprecated in WordPress 6.3. Follow-up to [52757], [56101]. Props justlevine. See #52217. Built from https://develop.svn.wordpress.org/trunk@59455 git-svn-id: http://core.svn.wordpress.org/trunk@58841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
683505a121
commit
6bf8fa1514
|
@ -3325,7 +3325,7 @@ class WP_Theme_JSON {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
foreach ( $duotone_presets[ $origin ] as $duotone_preset ) {
|
foreach ( $duotone_presets[ $origin ] as $duotone_preset ) {
|
||||||
$filters .= wp_get_duotone_filter_svg( $duotone_preset );
|
$filters .= WP_Duotone::get_filter_svg_from_preset( $duotone_preset );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5190,7 +5190,7 @@ function wp_get_duotone_filter_property( $preset ) {
|
||||||
* Returns the duotone filter SVG string for the preset.
|
* Returns the duotone filter SVG string for the preset.
|
||||||
*
|
*
|
||||||
* @since 5.9.1
|
* @since 5.9.1
|
||||||
* @deprecated 6.3.0
|
* @deprecated 6.3.0 Use WP_Duotone::get_filter_svg_from_preset() instead.
|
||||||
*
|
*
|
||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
|
@ -5198,7 +5198,7 @@ function wp_get_duotone_filter_property( $preset ) {
|
||||||
* @return string Duotone SVG filter.
|
* @return string Duotone SVG filter.
|
||||||
*/
|
*/
|
||||||
function wp_get_duotone_filter_svg( $preset ) {
|
function wp_get_duotone_filter_svg( $preset ) {
|
||||||
_deprecated_function( __FUNCTION__, '6.3.0' );
|
_deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::get_filter_svg_from_preset()' );
|
||||||
return WP_Duotone::get_filter_svg_from_preset( $preset );
|
return WP_Duotone::get_filter_svg_from_preset( $preset );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.8-alpha-59454';
|
$wp_version = '6.8-alpha-59455';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue