Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try: bundle the WP_Theme_JSON_Resolver class instead of inheriting per WordPress version #46750

Merged
merged 30 commits into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
96c0239
Backport WP_Theme_JSON_Resolver from core as it is
oandregal Dec 22, 2022
13185e2
Substitute WP_Theme_JSON by WP_Theme_JSON_Gutenberg
oandregal Dec 22, 2022
1f5ad2d
Substitute WP_Theme_JSON_Data by WP_Theme_JSON_Data_Gutenberg
oandregal Dec 22, 2022
fa996f4
Rename WP_Theme_JSON_Resolver to WP_Theme_JSON_Resolver_Base
oandregal Dec 22, 2022
a6e00ce
Make WP_Theme_JSON_Resolver_6_1 inherit from WP_Theme_JSON_Resolver_Base
oandregal Dec 22, 2022
bd03602
6.1: remove field already defined in base class
oandregal Dec 22, 2022
3d13fa9
6.1: remove translate, it is equal to base method
oandregal Dec 22, 2022
e2d54a4
6.1: remove get_core_data, it does not have base changes
oandregal Dec 22, 2022
1f0ca1d
6.1: remove get_user_data
oandregal Dec 22, 2022
7f48e7d
6.1: remove get_user_data_from_wp_global_styles
oandregal Dec 22, 2022
6858a77
6.2: inherit from WP_Theme_JSON_Resolver_Base instead of 6.1
oandregal Dec 22, 2022
811fc7d
6.1: remove class no longer in use
oandregal Dec 22, 2022
f4c6c01
6.2: deprecate theme_has_support
oandregal Dec 22, 2022
fc639bc
6.2: substitute WP_Theme_JSON_Resolver::theme_has_support
oandregal Dec 22, 2022
fe37493
6.2: port changes to get_user_data_from_wp_global_styles
oandregal Dec 22, 2022
a5bdc76
6.2: update get_merged_data
oandregal Dec 22, 2022
897c355
6.2: remove get_user_data
oandregal Dec 22, 2022
edf3fb0
experimental: make it inherit from WP_Theme_JSON_Resolver_Base
oandregal Dec 22, 2022
afb4aa0
6.2: remove class no longer in use
oandregal Dec 22, 2022
486162d
experimental: delete remove_json_comments
oandregal Dec 22, 2022
6551ec8
experimental: remove get_block_data
oandregal Dec 22, 2022
31e4b00
experimental: appearanceTools
oandregal Dec 22, 2022
26bf599
experimental: port webfonts (experimental API)
oandregal Dec 22, 2022
78c51b3
experimental: use gutenberg_get_legacy_theme_supports_for_theme_json
oandregal Dec 22, 2022
f18b7b8
experimental: get_theme_data, all code is in the base class
oandregal Dec 22, 2022
9335dbc
experimental: remove empty class
oandregal Dec 22, 2022
9e1336a
Rename WP_Theme_JSON_Resolver_Base to WP_Theme_JSON_Resolver_Gutenberg
oandregal Dec 22, 2022
1b16af4
Fix lint issue: rename class-wp-theme-json-resolver.php to class-wp-t…
oandregal Dec 22, 2022
9938731
Move theme.json to unversioned lib/
oandregal Dec 22, 2022
703ccaf
Move theme-i18n.json to unversioned lib/
oandregal Dec 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading