[buddypress-trac] [BuddyPress Trac] #8855: Use block.json metadata file and adapt BP Block API to WP Block API v2

buddypress-trac noreply at wordpress.org
Tue Mar 21 08:24:17 UTC 2023


#8855: Use block.json metadata file and adapt BP Block API to WP Block API v2
--------------------------+---------------------
 Reporter:  imath         |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  12.0.0
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

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


Comment:

 In [changeset:"13440" 13440]:
 {{{
 #!CommitTicketReference repository="" revision="13440"
 BP Blocks: introduce a new `$metadata` argument to use WP Block API v2

 The `bp_register_block()` array of arguments now accepts a `$metadata`
 argument to inform about the path to a block `block.json` dir path. If
 it's used this function is now is simple wrapper of WordPress's
 `register_block_type_from_metadata()` function.

 Closes https://github.com/buddypress/buddypress/pull/76
 See #8842
 See #8457
 Fixes #8855
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8855#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list