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

    r7736 r7926  
    4444 */
    4545function bp_blogs_screen_index() {
    46     if ( is_multisite() && bp_is_blogs_component() && !bp_current_action() ) {
     46    if ( bp_is_blogs_directory() ) {
    4747        bp_update_is_directory( true, 'blogs' );
    4848
Note: See TracChangeset for help on using the changeset viewer.