Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/30/2011 06:18:00 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Prevent debug notices when BP_ENABLE_ROOT_PROFILES is set, and $bp->pages->members is not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-catchuri.php

    r4961 r5061  
    186186
    187187                // Make sure there's a user corresponding to $bp_uri[0]
    188                 if ( !empty( $bp_uri[0] ) && $root_profile = get_userdatabylogin( $bp_uri[0] ) ) {
     188                if ( !empty( $bp->pages->members ) && !empty( $bp_uri[0] ) && $root_profile = get_userdatabylogin( $bp_uri[0] ) ) {
    189189
    190190                        // Force BP to recognize that this is a members page
     
    196196                        // This filter intercepts the WP query and tells it to load the members page
    197197                        add_filter( 'request', create_function( '$query_args', '$query_args["pagename"] = "' . $match->name . '"; return $query_args;' ) );
    198 
    199                 }
    200 
     198                }
    201199        }
    202200
Note: See TracChangeset for help on using the changeset viewer.