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-groups/bp-groups-screens.php

    r7736 r7926  
    1616
    1717function groups_directory_groups_setup() {
    18     if ( bp_is_groups_component() && !bp_current_action() && !bp_current_item() ) {
     18    if ( bp_is_groups_directory() ) {
    1919        bp_update_is_directory( true, 'groups' );
    2020
Note: See TracChangeset for help on using the changeset viewer.