[buddypress-trac] [BuddyPress Trac] #9212: Introduce a function to check a BuddyPress Admin screen is displayed

buddypress-trac noreply at wordpress.org
Sat Jul 13 14:56:52 UTC 2024


#9212: Introduce a function to check a BuddyPress Admin screen is displayed
----------------------------+--------------------
 Reporter:  imath           |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  15.0.0
Component:  Administration  |    Version:  10.0.0
 Severity:  normal          |   Keywords:
----------------------------+--------------------
 @emaralive shared his concern into our Slack's channel about the fact, the
 BP Add-ons tab into the WP Admin Plugins/Add screen is displaying a Plugin
 Dependency warning about the fact these add-ons require BuddyPress.

 [[Image(https://i.imgur.com/wKaahrT.png)]]

 As BuddyPress is generating this screen, I understand his concern and I
 believe like him the warning shouldn't be displayed.

 To remove this warning I chose to edit the WP.org Plugin API result to
 remove the `buddypress` dependency & do it only when the the BP Add-ons
 tab into the WP Admin Plugins/Add screen is displayed.

 I suggest to introduce a new function `bp_is_admin( $screen_id )` to ease
 checking whether a BP Admin Screen is displayed. I believe this function
 could also be used to create a dedicated Community Dashboard in the
 future.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9212>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list