-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Replace unstable__bootstrapServerSideBlockDefinitions with call to block type REST API #22812
Comments
This would be a good application of the new block types endpoint. 👍 As far as implementation, it's unclear to me in how Instead, it may be something that ought to occur elsewhere in the editor initialization where this sort of integration would be appropriate. For example, one of:
In any case, the implementation should use the new REST API endpoint, in combination with |
@spacedmonkey, chatted briefly with @gziolo about this ticket and WordPress/wordpress-develop#5718 (comment). Agreed that the source of the truth should be REST API for the editors, whenever possible. @kt-12 mentioned that some information is missing for dynamic blocks returned via API. It would also be nice to see performance metrics when preloading data via cc @@joemcgill |
Part of #41236.
Currently in WordPress core the follow lines appear.
This was a workaround added in WordPress 5.0. Now that the block types endpoint was added in #21065 , this should be used as the "point of truth" for block definitions.
Describe the solution you'd like
The block types api should be preloaded on the page by adding it to this array.
The text was updated successfully, but these errors were encountered: