Skip to:
Content

BuddyPress.org

Changeset 10751


Ignore:
Timestamp:
05/12/2016 07:10:05 PM (8 years ago)
Author:
djpaul
Message:

Core: correctly add contextual help for our main admin screens.

We were mis-using the contextual_help "action" (it's actually a
filter!), so PHP was returning a void/null value, breaking other
plugins that tried to add help text through this filter.

I've hooked the function to the load- action for the relevant admin
screens as a quick fix.

Fixes #6848

File:
1 edited

Legend:

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

    r10681 r10751  
    565565    }
    566566}
    567 add_action( 'contextual_help', 'bp_core_add_contextual_help' );
     567add_action( 'load-settings_page_bp-components', 'bp_core_add_contextual_help' );
     568add_action( 'load-settings_page_bp-page-settings', 'bp_core_add_contextual_help' );
     569add_action( 'load-settings_page_bp-settings', 'bp_core_add_contextual_help' );
     570add_action( 'load-users_page_bp-profile-setup', 'bp_core_add_contextual_help' );
    568571
    569572/**
Note: See TracChangeset for help on using the changeset viewer.