From 2588f90ab25f057aa2f1b05a35e4a525dd5d22a1 Mon Sep 17 00:00:00 2001 From: isabel_brison Date: Wed, 10 Jan 2024 00:27:15 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@57260 git-svn-id: http://core.svn.wordpress.org/trunk@56766 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-theme-json-resolver.php | 3 --- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-includes/class-wp-theme-json-resolver.php b/wp-includes/class-wp-theme-json-resolver.php index 5a785612ce..44db8364f1 100644 --- a/wp-includes/class-wp-theme-json-resolver.php +++ b/wp-includes/class-wp-theme-json-resolver.php @@ -312,9 +312,6 @@ class WP_Theme_JSON_Resolver { } $theme_support_data['settings']['color']['defaultGradients'] = $default_gradients; - // Classic themes without a theme.json don't support global duotone. - $theme_support_data['settings']['color']['defaultDuotone'] = false; - // Allow themes to enable link color setting via theme_support. if ( current_theme_supports( 'link-color' ) ) { $theme_support_data['settings']['color']['link'] = true; diff --git a/wp-includes/version.php b/wp-includes/version.php index abfa6ea23a..5ecbb167c7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57259'; +$wp_version = '6.5-alpha-57260'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.