Changeset 10110 for trunk/src/bp-core/bp-core-catchuri.php
- Timestamp:
- 09/14/2015 03:39:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-catchuri.php
r10108 r10110 322 322 } 323 323 324 // Set the current action 325 $bp->current_action = isset( $bp_uri[$uri_offset + 1] ) ? $bp_uri[$uri_offset + 1] : ''; 324 // Determine the current action. 325 $current_action = isset( $bp_uri[ $uri_offset + 1 ] ) ? $bp_uri[ $uri_offset + 1 ] : ''; 326 327 /* 328 * If a BuddyPress directory is set to the WP front page, URLs like example.com/members/?s=foo 329 * shouldn't interfere with blog searches. 330 */ 331 if ( empty( $current_action) && ! empty( $_GET['s'] ) && 'page' == get_option( 'show_on_front' ) && ! empty( $match->id ) ) { 332 $page_on_front = (int) get_option( 'page_on_front' ); 333 if ( (int) $match->id === $page_on_front ) { 334 $bp->current_component = ''; 335 return false; 336 } 337 } 338 339 $bp->current_action = $current_action; 326 340 327 341 // Slice the rest of the $bp_uri array and reset offset
Note: See TracChangeset
for help on using the changeset viewer.