mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00: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. Built from https://develop.svn.wordpress.org/trunk@55996 git-svn-id: http://core.svn.wordpress.org/trunk@55508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a7dd1ad7d6
commit
547f6aadcb
@ -315,6 +315,11 @@ class WP_Theme_JSON_Resolver {
|
|||||||
// Classic themes without a theme.json don't support global duotone.
|
// Classic themes without a theme.json don't support global duotone.
|
||||||
$theme_support_data['settings']['color']['defaultDuotone'] = false;
|
$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.
|
// Allow themes to enable all border settings via theme_support.
|
||||||
if ( current_theme_supports( 'border' ) ) {
|
if ( current_theme_supports( 'border' ) ) {
|
||||||
$theme_support_data['settings']['border']['color'] = true;
|
$theme_support_data['settings']['border']['color'] = true;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55995';
|
$wp_version = '6.3-alpha-55996';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user