Make WordPress Core


Ignore:
Timestamp:
11/23/2024 10:56:05 PM (13 months 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.

File:
1 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            }
Note: See TracChangeset for help on using the changeset viewer.