Changeset 5061 for trunk/bp-core/bp-core-catchuri.php
- Timestamp:
- 08/30/2011 06:18:00 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-catchuri.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r4961 r5061 186 186 187 187 // 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] ) ) { 189 189 190 190 // Force BP to recognize that this is a members page … … 196 196 // This filter intercepts the WP query and tells it to load the members page 197 197 add_filter( 'request', create_function( '$query_args', '$query_args["pagename"] = "' . $match->name . '"; return $query_args;' ) ); 198 199 } 200 198 } 201 199 } 202 200
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)