[buddypress-trac] [BuddyPress Trac] #8457: Migrate to @wordpress/scripts

buddypress-trac noreply at wordpress.org
Tue Apr 25 22:17:40 UTC 2023


#8457: Migrate to @wordpress/scripts
------------------------------+---------------------
 Reporter:  imath             |       Owner:  imath
     Type:  task              |      Status:  closed
 Priority:  normal            |   Milestone:  12.0.0
Component:  Build/Test Tools  |     Version:  6.0.0
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |
------------------------------+---------------------
Changes (by imath):

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


Comment:

 In [changeset:"13464" 13464]:
 {{{
 #!CommitTicketReference repository="" revision="13464"
 Update all BP Blocks & Modern JS PHP registration code

 - Use the `metadata` argument of the `bp_register_block()` function to
 load all BP Blocks JSON files.
 - Get BP Blocks dependencies using the `@wordpress/scripts`
 `index.asset.php` generated files.
 - Although the BP Blocks category has been replaced by the BP Blocks
 collection, leave the no more used `bp_block_category()` function in place
 in case some third party plugins are using it for their custom blocks.
 - PHPUnit tests: make sure to unregister all BP Blocks when using the
 `BP_UnitTestCase->go_to()` method.

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

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


More information about the buddypress-trac mailing list