Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/11/2024 06:16:38 PM (20 months ago)
Author:
imath
Message:

BP Hello screen: only display it to Community Site Admins

This screen targets Community Site Admins to inform them about the top features included in a new version of the plugin, its full change log as well as to explain how they can get involved into the BuddyPress open source project.

About this last point, the "Get Involved" subpage layout has also been improved so that warnings about how we can contribute to BuddyPress docs are better displayed.

Props emaralive

See #9111 (trunk)
Closes https://github.com/buddypress/buddypress/pull/263

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-admin.php

    r13788 r13789  
    186186
    187187        // Add a link to BuddyPress Hello in the admin bar.
    188         add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 100 );
     188        if ( bp_current_user_can( 'bp_moderate' ) ) {
     189            add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 100 );
     190        }
    189191
    190192        // Add a description of BuddyPress tools in the available tools page.
Note: See TracChangeset for help on using the changeset viewer.