mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57255 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user