-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
Needs DevReady for, and needs developer effortsReady for, and needs developer effortsREST API InteractionRelated to REST APIRelated to REST API[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Type] TaskIssues or PRs that have been broken down into an individual action to takeIssues or PRs that have been broken down into an individual action to take
Description
Part of #41236.
Currently in WordPress core the follow lines appear.
// Preload server-registered block schemas.
wp_add_inline_script(
'wp-blocks',
'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings() ) . ');'
);
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.
gziolo
Metadata
Metadata
Assignees
Labels
Needs DevReady for, and needs developer effortsReady for, and needs developer effortsREST API InteractionRelated to REST APIRelated to REST API[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Type] TaskIssues or PRs that have been broken down into an individual action to takeIssues or PRs that have been broken down into an individual action to take