Themes: Add theme support for appearance tools.
Reapplies the patch reverted in #57649 as the original patch was no longer applying cleanly. Adds theme support for appearance tools to `WP_Theme_JSON_Resolver`. Props andrewserong, mukesh27, noisysocks. Fixes #60118. Built from https://develop.svn.wordpress.org/trunk@57255 git-svn-id: http://core.svn.wordpress.org/trunk@56761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
90088c4c92
commit
b0b64739ff
|
@ -327,6 +327,11 @@ class WP_Theme_JSON_Resolver {
|
|||
$theme_support_data['settings']['border']['style'] = true;
|
||||
$theme_support_data['settings']['border']['width'] = true;
|
||||
}
|
||||
|
||||
// Allow themes to enable appearance tools via theme_support.
|
||||
if ( current_theme_supports( 'appearance-tools' ) ) {
|
||||
$theme_support_data['settings']['appearanceTools'] = true;
|
||||
}
|
||||
}
|
||||
$with_theme_supports = new WP_Theme_JSON( $theme_support_data );
|
||||
$with_theme_supports->merge( static::$theme );
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-alpha-57254';
|
||||
$wp_version = '6.5-alpha-57255';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue