Skip to:
Content

BuddyPress.org

Changeset 12005


Ignore:
Timestamp:
04/27/2018 10:15:20 PM (6 years ago)
Author:
r-a-y
Message:

Admin: Ensure Hello modal displays in the Network Admin dashboard.

See #7741.

File:
1 edited

Legend:

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

    r12004 r12005  
    535535
    536536        // BuddyPress Hello
    537         if ( get_current_screen()->id === 'dashboard' && ! empty( $_GET['hello'] ) && $_GET['hello'] === 'buddypress' ) {
     537        if ( 0 === strpos( get_current_screen()->id, 'dashboard' ) && ! empty( $_GET['hello'] ) && $_GET['hello'] === 'buddypress' ) {
    538538            wp_enqueue_style( 'bp-hello-css' );
    539539            wp_enqueue_script( 'bp-hello-js' );
     
    550550     */
    551551    public function about_screen() {
    552         if ( get_current_screen()->id !== 'dashboard' || empty( $_GET['hello'] ) || $_GET['hello'] !== 'buddypress' ) {
     552        if ( 0 !== strpos( get_current_screen()->id, 'dashboard' ) || empty( $_GET['hello'] ) || $_GET['hello'] !== 'buddypress' ) {
    553553            return;
    554554        }
Note: See TracChangeset for help on using the changeset viewer.