Make WordPress Core


Ignore:
Timestamp:
06/29/2023 06:19:41 AM (3 years ago)
Author:
isabel_brison
Message:

Editor: update duotone support.

Updates duotone support after stabilisation of selectors API and adds a few small code quality and UI improvements.

Props onemaggie, peterwilsoncc, ajlende, audrasjb, mikeschroder, ramonopoly.
Fixes #58555.

File:
1 edited

Legend:

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

    r56083 r56101  
    115115         *              `prevent_override` value for `color.duotone` to use `color.defaultDuotone`.
    116116         * @since 6.2.0 Added 'shadow' presets.
     117         * @since 6.3.0 Replaced value_func for duotone with `null`. Custom properties are handled by class-wp-duotone.php.
    117118         * @var array
    118119         */
     
    144145                        'prevent_override'  => array( 'color', 'defaultDuotone' ),
    145146                        'use_default_names' => false,
    146                         'value_func'        => 'wp_get_duotone_filter_property',
    147                         'css_vars'          => '--wp--preset--duotone--$slug',
     147                        'value_func'        => null, // CSS Custom Properties for duotone are handled by block supports in class-wp-duotone.php.
     148                        'css_vars'          => null,
    148149                        'classes'           => array(),
    149150                        'properties'        => array( 'filter' ),
Note: See TracChangeset for help on using the changeset viewer.