Changeset 3947 for trunk/bp-core/bp-core-catchuri.php
- Timestamp:
- 01/27/2011 06:42:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r3917 r3947 27 27 */ 28 28 function bp_core_set_uri_globals() { 29 global $bp, $bp_pages; 30 global $bp_unfiltered_uri, $bp_unfiltered_uri_offset; 29 global $bp, $bp_unfiltered_uri, $bp_unfiltered_uri_offset; 31 30 global $current_blog; 32 31 … … 43 42 44 43 // Fetch all the WP page names for each component 45 if ( empty( $bp _pages ) )46 $bp _pages = bp_core_get_page_names();44 if ( empty( $bp->pages ) ) 45 $bp->pages = bp_core_get_page_names(); 47 46 48 47 // Ajax or not? … … 119 118 120 119 // Find a match within registered BuddyPress controlled WP pages (check members first) 121 foreach ( (array)$bp _pages as $page_key => $bp_page ) {120 foreach ( (array)$bp->pages as $page_key => $bp_page ) { 122 121 if ( in_array( $bp_page->name, (array)$bp_uri ) ) { 123 122 // Match found, now match the slug to make sure.
Note: See TracChangeset
for help on using the changeset viewer.