[wp-trac] [WordPress Trac] #59346: General: Add `block_hooks` field to block types

WordPress Trac noreply at wordpress.org
Mon Sep 25 10:00:49 UTC 2023


#59346: General: Add `block_hooks` field to block types
---------------------------------------------+-----------------------------
 Reporter:  Bernhard Reiter                  |       Owner:  Bernhard
                                             |  Reiter
     Type:  enhancement                      |      Status:  reopened
 Priority:  normal                           |   Milestone:  6.4
Component:  General                          |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  commit has-patch has-unit-tests  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by gziolo):

 In [changeset:"56676" 56676]:
 {{{
 #!CommitTicketReference repository="" revision="56676"
 REST API: Improve the block type schema for the `name` field

 Align the schema between `block.json` defined in Gutenberg and the REST
 API endpoint for block types. It looks like the `name` field isn't
 validated in all places and when it uses pattern matching in the REST API
 code, then it was slightly different.

 Props spacedmonkey, ockham.
 See #59346.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59346#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list