[buddypress-trac] [BuddyPress Trac] #8272: Private groups not available in group block

buddypress-trac noreply at wordpress.org
Sun Jul 5 18:19:07 UTC 2020


#8272: Private groups not available in group block
-------------------------------------+---------------------
 Reporter:  iamthewebb               |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  7.0.0
Component:  REST API                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+---------------------
Changes (by imath):

 * keywords:  dev-feedback => has-patch needs-testing
 * component:  (not sure) => REST API


Comment:

 Ok @iamthewebb let's also include Private groups into the Autocompleter!

 In
 [https://buddypress.trac.wordpress.org/attachment/ticket/8272/8272.patch
 8272.patch], I've improved various things about BP Blocks actually.

 1. Adapt to the Block Editor's new style to arrive in WordPress 5.5
 2. Improve the bp.Autocompleter component so that it's more useful. We can
 now use it to send specific query args to the endpoint and a callback
 function to display the item slug.
 3. Improve the BP Group block so that it use these query args `{
 'show_hidden': false }` meaning **Private** and Public groups can be
 listed into the Autocompleter.
 4. Improve both blocks (Group and member) so that they use the slug
 callback function to respectively display the Group status and the
 member's mention name.

 Here's a preview:

 [[Image(https://cldup.com/QYYt7ngPUK.png)]]

 I haven't tested it into WordPress < 5.5. I'll give it a check asap.
 @iamthewebb don't hesitate to test it ;)

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


More information about the buddypress-trac mailing list