Ticket #4954: 4954.ray.01b.path.patch
File 4954.ray.01b.path.patch, 511 bytes (added by , 11 years ago) |
---|
-
bp-core/bp-core-catchuri.php
diff --git bp-core/bp-core-catchuri.php bp-core/bp-core-catchuri.php index 17b272e..a1df020 100644
function bp_core_get_from_uri( $context = 'item' ) { 359 359 } 360 360 361 361 // strip site path from URI 362 $path = s tr_replace( $site_path, '', esc_url( $_SERVER['REQUEST_URI']) );362 $path = substr( esc_url( $_SERVER['REQUEST_URI'] ), strlen( $site_path ) ); 363 363 364 364 $bp_root_slugs = wp_list_pluck( (array) buddypress()->pages, 'slug' ); 365 365