[buddypress-trac] [BuddyPress Trac] #8521: Migrate the `BP_Core_Friends_Widget` Legacy Widget as a Widget Block

buddypress-trac noreply at wordpress.org
Wed Jul 14 16:44:35 UTC 2021

#8521: Migrate the `BP_Core_Friends_Widget` Legacy Widget as a Widget Block
 Reporter:  imath      |       Owner:  imath
     Type:  task       |      Status:  closed
 Priority:  normal     |   Milestone:  9.0.0
Component:  Friends    |     Version:
 Severity:  normal     |  Resolution:  fixed
 Keywords:  has-patch  |
Changes (by imath):

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


 In [changeset:"13002" 13002]:
 #!CommitTicketReference repository="" revision="13002"
 Merge the BP Blocks plugin's 'bp/friends' Block

 - introduce the `bp_get_dynamic_template_part()` function which let you
 use a JavaScript template inside PHP thanks to the
 `bp_core_replace_tokens_in_text()` function.
 - Adds a new `assets/widgets/friends.php` JavaScript template to our two
 template packs.
 - Adds a new Core JavaScript file which acts like a parent class to all
 dynamic widgets front-end scripts (friends, groups, members).
 - Add this front-end script to the Friends component.
 - Adapt Grunt sass tasks.
 - Add the Block JavaScript source files into `src/js/bp-
 - Add the Block Scss source file into `src/bp-friends/sass`.
 - Generate the development files to ease testing.

 Fixes #8521

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8521#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list