[wp-trac] [WordPress Trac] #56865: $args taking effect too late in register_block_type_from_metadata

WordPress Trac noreply at wordpress.org
Sat Oct 28 01:00:30 UTC 2023


#56865: $args taking effect too late in register_block_type_from_metadata
---------------------------------------------+-----------------------
 Reporter:  aristath                         |       Owner:  audrasjb
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.5
Component:  General                          |     Version:  6.2
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57026" 57026]:
 {{{
 #!CommitTicketReference repository="" revision="57026"
 Blocks: Parse the arguments earlier in
 `register_block_type_from_metadata()`.

 This makes it possible to register a block by passing an array of
 arguments, without the presence of a `block.json` file.

 Follow-up to [48141], [49948].

 Props aristath, spacedmonkey, mukesh27, costdev, audrasjb, oglekler,
 felipeelia, hellofromTonya.
 Fixes #56865.
 }}}

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


More information about the wp-trac mailing list