Make WordPress Core


Ignore:
Timestamp:
01/10/2024 12:25:19 AM (2 years ago)
Author:
isabel_brison
Message:

Editor: Allow default duotone styles if not explicitly disabled in theme.json.

Removes setting that disabled default duotone palette from being output in themes without theme.json.

Props andrewserong.
Fixes #60136.

File:
1 edited

Legend:

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

    r57255 r57260  
    312312            }
    313313            $theme_support_data['settings']['color']['defaultGradients'] = $default_gradients;
    314 
    315             // Classic themes without a theme.json don't support global duotone.
    316             $theme_support_data['settings']['color']['defaultDuotone'] = false;
    317314
    318315            // Allow themes to enable link color setting via theme_support.
Note: See TracChangeset for help on using the changeset viewer.