[wp-trac] [WordPress Trac] #53806: register_block_type_from_metadata does not allow full path to file as docs say it does

WordPress Trac noreply at wordpress.org
Tue Jul 27 23:44:55 UTC 2021


#53806: register_block_type_from_metadata does not allow full path to file as docs
say it does
-------------------------+------------------------------
 Reporter:  coreyw       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  5.8
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  docs
-------------------------+------------------------------
Changes (by coreyw):

 * focuses:   => docs
 * type:  defect (bug) => enhancement


Comment:

 Sorry, just realized it does work as long as the filename ends in
 `block.json`. I had previously just tried `block-name.json` which did not
 work. But something like `whatever-name-block.json` will work. Maybe the
 docs and comment could be updated to include that requirement if that is
 the intention.

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


More information about the wp-trac mailing list