Changeset 5322
- Timestamp:
- 11/09/2011 08:11:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r5320 r5322 343 343 */ 344 344 function bp_core_load_template( $templates ) { 345 global $post, $bp, $wp _query;345 global $post, $bp, $wpdb, $wp_query; 346 346 347 347 // Bail if there is no offset … … 350 350 351 351 // Determine if the root object WP page exists for this request 352 if ( !get_page_by_path( $bp->unfiltered_uri[$bp->unfiltered_uri_offset] ) ) 352 // (@todo: use reliable API function (get_page_by_path() doesn't work?) 353 if ( !$wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_name = %s", $bp->unfiltered_uri[$bp->unfiltered_uri_offset] ) ) ) 353 354 return false; 354 355
Note: See TracChangeset
for help on using the changeset viewer.