-
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
Add a new endpoint that exposes block editor settings through the REST API #29969
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
484e3ee
Add a new endpoint that exposes block editor settings through the RES…
Tug 9737fbc
Merge branch 'master' into add/block-editor-settings-rest-endpoint
0b90f30
Update permission check
ba80bcc
Global styles - Add check for mobile
d1cc0f5
Fix lint issues
1cfd9d1
Merge branch 'trunk' into add/block-editor-settings-rest-endpoint
052d241
Block editor mobile settings endpoint
b4205d5
Move theme support data within the if condition
d332e6e
Add schema
e3e1c77
Update naming
2c7abac
Update endpoint name
ffe9ac1
Use require_once
6837fa7
Use block editor settings
d9f3277
Merge branch 'trunk' into add/global-styles-mobile-endpoint
e18eaa3
Merge branch 'trunk' into add/global-styles-mobile-endpoint
2328ff6
Usage of get_default_block_editor_settings for the rest api endpoint
ede0fc1
Block editor settings update schema
ddb0dcd
Merge branch 'trunk' into add/global-styles-mobile-endpoint
3a3908f
Add context as a param to get the block editor settings, update permi…
108debd
Remove unneeded filter
2d24002
Remove unneeded changes
ec6fa21
Update context in schema
f5db2fc
Update context for global styles attributes
3897d19
Update class-wp-rest-block-editor-settings-controller.php
gziolo 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
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.
@youknowriad, see this context which is meant to allow the mobile app to pick settings for a given block editor type. As discussed in #31027 (comment), we need to figure out what those contexts should be.
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.
@draganescu, should it be
widget-editor
orwidgets-editor
?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.
@talldan, @noisysocks, @tellthemachines, or @kevin940726 - can you help?
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.
widgets-editor
seems to be preferred everywhere. Does this match another value defined in the codebase? The name of the editor passed togutenberg_initialize_editor
is currentlywidgets_editor
with an underscore.There's also the customizer screen, which is
widgets_customizer
.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.
widgets-editor
it is then. I updated the code in 3897d19. Thank you.Will it use a different set of settings?