Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/18/2014 07:37:41 PM (11 years ago)
Author:
imath
Message:

Adds bp_is_{component}_directory new helper functions

To check if the current page is the activity, members, groups or blogs directory page, you can now use these new helper functions.

Props r-a-y, DJPaul

Fixes #5408

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-screens.php

    r7736 r7926  
    2929 */
    3030function bp_activity_screen_index() {
    31     if ( !bp_displayed_user_id() && bp_is_activity_component() && !bp_current_action() ) {
     31    if ( bp_is_activity_directory() ) {
    3232        bp_update_is_directory( true, 'activity' );
    3333
Note: See TracChangeset for help on using the changeset viewer.