-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add context properties to block types REST endpoint (#22686)
* Docs: Add context properties to Block RFC * Lib: Add context properties to block types endpoint * RFC: Add default context properties * Rename context to use_context when using inside REST API * Include context properties in the RFC example * Go with uses_context in REST API * Follow PHP convention for naming fields: `provides_context` and `uses_context` * Fix the usage of blockType.context in JS code * Docs: Add deprecation entry for Block Context changes * Fix missed places where context was not renamed to usesContext * Add deprecation logic * Remove an empty line * Apply suggestions from code review Co-authored-by: Miguel Fonseca <[email protected]> * Add more deprecation details * Update compat.php Co-authored-by: Grzegorz Ziolkowski <[email protected]> Co-authored-by: Miguel Fonseca <[email protected]>
- Loading branch information
1 parent
9a988cf
commit c33a5a5
Showing
27 changed files
with
229 additions
and
107 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
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.