-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FSE: Allow child theme.json to be merged with parent theme.json (#35459)
* FSE: Allow child theme.json to be merged with parent theme.json * Update lib/class-wp-theme-json-resolver-gutenberg.php Co-authored-by: Ari Stathopoulos <[email protected]> * add a claifying comment * Update lib/class-wp-theme-json-resolver-gutenberg.php Co-authored-by: George Mamadashvili <[email protected]> * Update lib/class-wp-theme-json-resolver-gutenberg.php Co-authored-by: George Mamadashvili <[email protected]> * Fix lint error * Add directory flag to get_file_path_from_theme method Only use get_theme_file_path in theme_has_support check * Add unit tests for merging Co-authored-by: Ari Stathopoulos <[email protected]> Co-authored-by: George Mamadashvili <[email protected]>
- Loading branch information
1 parent
024f7ea
commit 9953bfc
Showing
4 changed files
with
137 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
Theme Name: FSE Child Theme | ||
Theme URI: https://wordpress.org/ | ||
Description: For testing purposes only. | ||
Template: fse | ||
Version: 1.0.0 | ||
Text Domain: fse-child | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"version": 1, | ||
"settings": { | ||
"color": { | ||
"palette": [ | ||
{ | ||
"slug": "light", | ||
"name": "Light", | ||
"color": "#f3f4f6" | ||
}, | ||
{ | ||
"slug": "primary", | ||
"name": "Primary", | ||
"color": "#3858e9" | ||
}, | ||
{ | ||
"slug": "dark", | ||
"name": "Dark", | ||
"color": "#111827" | ||
} | ||
], | ||
"custom": true | ||
}, | ||
"blocks": { | ||
"core/paragraph": { | ||
"color": { | ||
"palette": [ | ||
{ | ||
"slug": "light", | ||
"name": "Light", | ||
"color": "#f3f4f6" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"customTemplates": [ | ||
{ | ||
"name": "page-home", | ||
"title": "Homepage" | ||
} | ||
], | ||
"templateParts": [ | ||
{ | ||
"name": "small-header", | ||
"title": "Small Header", | ||
"area": "header" | ||
} | ||
] | ||
} |