Make WordPress Core


Ignore:
Timestamp:
02/17/2022 05:29:04 PM (4 years ago)
Author:
audrasjb
Message:

Editor: Backport Duotone fixes for 5.9.1.

This changeset is a backport for the following Gutenberg PRs:

Props oandregal, scruffian, Mamaduka.
Merges [52757] to the 5.9 branch.
See #55179.

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/src/wp-includes/deprecated.php

    r52425 r52759  
    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.