-
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.
Add an 'area' term for Template Parts. (#28410)
* register term * update rest controller and build result functions * dont add term to regular template posts * only prepare term for database if template part * rename 'section' * add query support * refactor json attribute injection, use for both plural and singular file getters * only allow for supported section types * remove unnecessary newlines * help function for ensuring supported section type * fix php lint error * rename function * only decode json once per request * update 'from post' test * rename term 'wp_template_section' * update rest tests for template parts * update block templates tests * add TODOs to follow up on after updating themes * rename register function * remove unnecessary else * fix renamed function in tests * make should_include logic more readable * update format, function name, and check terms error * define constants * trigger warning when unsupported type is used * use WP_Theme_JSON_Resolver * just some spacing * use new methods after rebase updates * use 'uncategorized' for both unspecified and unsupported * remove unnecessarily added newlines * add test for new theme json getter * Update lib/class-wp-theme-json.php Co-authored-by: André <nosolosw@users.noreply.github.com> * Update phpunit/class-wp-theme-json-test.php Co-authored-by: André <nosolosw@users.noreply.github.com> * update method name calls * rename section to area * fix typo Co-authored-by: André <nosolosw@users.noreply.github.com>
- Loading branch information
1 parent
beb765c
commit 1a29dbd
Showing
7 changed files
with
392 additions
and
6 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
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
Oops, something went wrong.