Skip to:
Content

BuddyPress.org

#8855 closed defect (bug) (fixed)

Use block.json metadata file and adapt BP Block API to WP Block API v2

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 12.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch
Cc:

Description

Since WP 5.8 will be required for BuddyPress 12.0.0, let's move to BP Block API v2 using block.json files and reorganizing block directories to benefit from @wordpress/script "automated" tasks.

Related tickets:

Change History (2)

This ticket was mentioned in PR #76 on buddypress/buddypress by @imath.


14 months ago
#1

  • Keywords has-patch added; needs-patch removed

This $metadata argument will be used to determine whether or not to use the v2 of the WP Block API.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/8855

#2 @imath
14 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 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

Note: See TracTickets for help on using tickets.