Make WordPress Core

Changeset 59455


Ignore:
Timestamp:
11/23/2024 10:56:05 PM (8 days ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r59418 r59455  
    33263326                }
    33273327                foreach ( $duotone_presets[ $origin ] as $duotone_preset ) {
    3328                     $filters .= wp_get_duotone_filter_svg( $duotone_preset );
     3328                    $filters .= WP_Duotone::get_filter_svg_from_preset( $duotone_preset );
    33293329                }
    33303330            }
  • trunk/src/wp-includes/deprecated.php

    r59292 r59455  
    51915191 *
    51925192 * @since 5.9.1
    5193  * @deprecated 6.3.0
     5193 * @deprecated 6.3.0 Use WP_Duotone::get_filter_svg_from_preset() instead.
    51945194 *
    51955195 * @access private
     
    51995199 */
    52005200function wp_get_duotone_filter_svg( $preset ) {
    5201     _deprecated_function( __FUNCTION__, '6.3.0' );
     5201    _deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::get_filter_svg_from_preset()' );
    52025202    return WP_Duotone::get_filter_svg_from_preset( $preset );
    52035203}
Note: See TracChangeset for help on using the changeset viewer.