-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Pages: Add "Set as posts page" action #67650
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
57ec70f
Move getItemTitle to its own file
mikachan fbc91d7
Add unset homepage action
mikachan d42e0c1
Add unset as posts page action
mikachan 4a90867
Add set as posts page action
mikachan 4b29bcb
Update homepage action tests
mikachan d892300
Rename unset options to reset
mikachan f68a189
Reword posts page reset notice
mikachan 4ac3a3c
Merge branch 'trunk' into add/more-homepage-actions
mikachan 2cc8058
Ensure Move to trash is always at end of list
mikachan 61c7d48
Update packages/editor/src/components/post-actions/actions.js
mikachan 711f65c
Update packages/editor/src/components/post-actions/reset-homepage.js
mikachan 30a7f2a
Remove getItemTitle from utils index.js
mikachan 7a775e4
Merge branch 'trunk' into add/more-homepage-actions
mikachan 8ef850c
Remove reset actions
mikachan bc1b218
Slight refactor to modal warning in set as posts page action
mikachan 2cfd817
Remove use of saveEditedEntityRecord
mikachan f60fa36
Check for currentPostsPage before setting modalwarning
mikachan 35cea15
Add full stop to action success notices
mikachan 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
Rename unset options to reset
- Loading branch information
commit d892300b51b0b4cecdbe9a1ab8e510ede76f15e3
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Is this exception error actually possible? Because
saveEntityRecorddoesn't seem to throw any exceptions by default.https://github.com/WordPress/gutenberg/blob/add/more-homepage-actions/packages/core-data/README.md#saveentityrecord
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 think it's nice to have the
catchblock anyway, to catch any other errors (like a network error maybe). But I completely see your point, I don't thinksaveEntityRecordthrows any exceptions.