-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Remove more initial PHP state #23775
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a15d257
Editor still loads if page or template type is not set
noahtallen c96b829
Create homepage state reducer
noahtallen f7ee605
Remove initial state from PHP
noahtallen b77b2a6
Move home page resolution to client
noahtallen b42220d
Consolidate entityId logic
noahtallen d62ee0c
Consolidate activePage?.path
noahtallen 4e39692
Rework setupstate
noahtallen db02834
Load home data over API
noahtallen 898008a
Rename camelcase
noahtallen d875b57
Remove templateId from setPage
noahtallen e1d1fac
Naive cache results of findTemplate
noahtallen 0e8e067
Rename cache variable
noahtallen 24994e1
Add text domain to setting translation
noahtallen e277841
Fix existing JS unit tests
noahtallen eb0661c
Fix e2e test
noahtallen 162c3db
Remove template cache
noahtallen 080f7d2
Add new unit tests
noahtallen 634a929
Fix tests, return templateId from setPage
noahtallen 7e590f7
Try e2e test with visible: true
noahtallen fa8a0e8
Try evaluate
noahtallen f1ffac8
avoid variable
noahtallen dccc999
Set the templateType reducer's initial state to 'wp_template'
ockham db074a1
Roll back e2e test changes
ockham 0d02191
Whitespace
ockham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is adding data to some REST API endpoint. So pinging @TimothyBJacobs for awareness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the ping! Doing this on
rest_api_init
should work, but it might be better to do it oninit
so it is always a registered setting. We can also safely drop thename
parameter forshow_in_rest
. It'll default to the option name.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I will definitely make those changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#24390