mirror of
git://develop.git.wordpress.org/
synced 2025-03-17 10:29:51 +01:00
Themes: Allow non-block themes to add theme support for link color settings.
This changeset themes without theme.json to opt-in to block link color tools via `add_theme_support( 'link-color' );`. Follow-up to [55067], [55273]. Props poena, audrasjb. Fixes #58597. git-svn-id: https://develop.svn.wordpress.org/trunk@55996 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
43e382ba7e
commit
97be53bbce
@ -315,6 +315,11 @@ class WP_Theme_JSON_Resolver {
|
||||
// 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;
|
||||
}
|
||||
|
||||
// Allow themes to enable all border settings via theme_support.
|
||||
if ( current_theme_supports( 'border' ) ) {
|
||||
$theme_support_data['settings']['border']['color'] = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user