Make WordPress Core


Ignore:
Timestamp:
02/17/2022 04:16:59 PM (3 years ago)
Author:
audrasjb
Message:

Editor: Backport Duotone fixes for 5.9.1.

This changeset is a backport for the following Gutenberg PRs:

  • Fix duotone theme cache gutenberg#36236
  • Fix duotone render in non-fse themes gutenberg#37954
  • Duotone: Allow users to specify custom filters gutenberg#38442

Props oandregal, scruffian, Mamaduka.
See #55179.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r52425 r52757  
    42094209    return _excerpt_render_inner_blocks( $columns, $allowed_blocks );
    42104210}
     4211
     4212/**
     4213 * Renders the duotone filter SVG and returns the CSS filter property to
     4214 * reference the rendered SVG.
     4215 *
     4216 * @since 5.9.0
     4217 * @deprecated 5.9.1 Use `wp_get_duotone_filter_property` introduced in 5.9.1.
     4218 *
     4219 * @see wp_get_duotone_filter_property()
     4220 *
     4221 * @param array $preset Duotone preset value as seen in theme.json.
     4222 * @return string Duotone CSS filter property.
     4223 */
     4224function wp_render_duotone_filter_preset( $preset ) {
     4225    _deprecated_function( __FUNCTION__, '5.9.1', 'wp_get_duotone_filter_property()' );
     4226    return wp_get_duotone_filter_property( $preset );
     4227}
Note: See TracChangeset for help on using the changeset viewer.