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

WordPress Trac noreply at wordpress.org
Thu Sep 14 14:54:56 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           |     Focuses:
-----------------------------+------------------------------

Comment (by gziolo):

 In [changeset:"56588" 56588]:
 {{{
 #!CommitTicketReference repository="" revision="56588"
 Tests: Improve the assertions for REST API endpoint for block types

 Follow-up to [56587], [55673]. While working on #59346, it was noted that
 selectors fiels is not always included in the assertions. While looking at
 it is was difficult to spot the issue because the random order of how REST
 API fields where listed.

 Reorderd the REST API fields in the test cases to follow the list from the
 documentation: https://github.com/WordPress/gutenberg/blob/trunk/docs
 /reference-guides/block-api/block-metadata.md. This way it's going to be
 easier to maintain the list moving forward.

 Props ockham.
 See #59346, #59313, #57585.
 }}}

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


More information about the wp-trac mailing list