[wp-trac] [WordPress Trac] #60525: Block Bindings:

WordPress Trac noreply at wordpress.org
Tue Feb 13 14:38:11 UTC 2024


#60525: Block Bindings:
--------------------------+-----------------------
 Reporter:  gziolo        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.5
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------
 While testing Block Bindings API, we realized that we don't have a robust
 mechanism for extending block context of supported block types. The
 approach to manually update every block type's `usesContext` in
 `block.json` file doesn’t scale at all. Hardocing the list of injected
 `useContext` entries is also limiting. We decided to formalize it in the
 registration of the block bindings source. This way, every author of the
 block bindings source can decide what entries from the block context they
 want to consume.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60525>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list