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

buddypress-trac noreply at wordpress.org
Wed Jul 24 08:36:43 UTC 2024


#9212: Introduce a function to check a BuddyPress Admin screen is displayed
----------------------------+---------------------
 Reporter:  imath           |       Owner:  imath
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  15.0.0
Component:  Administration  |     Version:  10.0.0
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |
----------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13974" 13974]:
 {{{
 #!CommitTicketReference repository="" revision="13974"
 Administration: add a function to check a BP Admin Screen is displayed

 `bp_is_admin()` accepts an optional parameter: a string containing the BP
 Admin Screen ID. If provided: it checks this screen is loaded, if not it
 only checks a BP Admin Screen is displayed. This function will help us put
 together a specific community dashboard in the future.

 For now it's helping us making sure the WP Plugin dependency warning is
 not displayed into the WP Admin > Add new plugin > BP Add-ons tab as this
 tab is generated by BuddyPress: so it is available & activated!

 Props emaralive.

 Fixes #9212
 Closes https://github.com/buddypress/buddypress/pull/334
 }}}

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


More information about the buddypress-trac mailing list