Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#62225 closed defect (bug) (fixed)

Block Bindings: Bootstrap sources with inline script from server

Reported by: santosguillamot's profile santosguillamot Owned by:
Milestone: 6.7 Priority: normal
Severity: normal Version: 6.7
Component: Editor Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

Bootstrap block bindings sources earlier in the process through an inline script to ensure they are available when developers want to extend them in the client. Following the same pattern other APIs like registering block types are doing.

Fix the issue reported here: WordPress/gutenberg#66031.

Change History (6)

This ticket was mentioned in PR #7552 on WordPress/wordpress-develop by @santosguillamot.


3 months ago
#1

  • Keywords has-unit-tests added

Fixes the issue reported here: https://github.com/WordPress/gutenberg/issues/66031

Basically, we need to ensure the bootstrap happens early in the process to ensure extenders code runs after it. The current implementation runs after domReady which seems to be too late.

In this pull request, I propose changing the approach and using an inline script like we are doing for bootstrapping block types.

Trac ticket: https://core.trac.wordpress.org/ticket/62225

@santosguillamot commented on PR #7552:


3 months ago
#2

Still needs the track ticket to be complete.

I have just created the ticket: https://core.trac.wordpress.org/ticket/62225#ticket

#3 @gziolo
3 months ago

In [59238]:

Editor: Bootstrap block binding sources with inline script from server

Bootstrap block bindings sources earlier in the process through an inline script to ensure they are available when developers want to extend them in the client. Following the same pattern other APIs like registering block types are doing.

Props santosguillamot, cbravobernal, gziolo.
Fixes #62225.

Last edited 3 months ago by gziolo (previous) (diff)

#4 @gziolo
3 months ago

  • Milestone changed from Awaiting Review to 6.7
  • Resolution set to fixed
  • Status changed from new to closed

#5 @gziolo
3 months ago

  • Component changed from General to Editor
Note: See TracTickets for help on using tickets.