Changeset 3433
- Timestamp:
- 11/16/2010 10:55:54 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r3358 r3433 222 222 global $post, $bp, $wpdb, $wp_query, $bp_unfiltered_uri, $bp_unfiltered_uri_offset; 223 223 224 if ( !isset( $bp_unfiltered_uri[$bp_unfiltered_uri_offset] ) ) 225 return false; 226 224 227 // Determine if the root object WP page exists for this request (TODO: is there an API function for this? 225 228 if ( !$page_exists = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_name = %s", $bp_unfiltered_uri[$bp_unfiltered_uri_offset] ) ) ) -
trunk/bp-groups/bp-groups-classes.php
r3375 r3433 348 348 /* Populate some extra information instead of querying each time in the loop */ 349 349 if ( !empty( $populate_extras ) ) { 350 $group_ids = array(); 350 351 foreach ( (array)$paged_groups as $group ) $group_ids[] = $group->id; 351 352 $group_ids = $wpdb->escape( join( ',', (array)$group_ids ) );
Note: See TracChangeset
for help on using the changeset viewer.