Changeset 7845
- Timestamp:
- 02/11/2014 03:01:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-cache.php
r7843 r7845 212 212 // Get meta info 213 213 if ( ! empty( $uncached_ids ) ) { 214 $id_list = join( ',', $object_ids);215 $meta_list = $wpdb->get_results( $wpdb->prepare( "SELECT {$object_column}, meta_key, meta_value FROM {$meta_table} WHERE {$object_column} IN ($id_list)", $object_type), ARRAY_A );214 $id_list = join( ',', wp_parse_id_list( $uncached_ids ) ); 215 $meta_list = $wpdb->get_results( esc_sql( "SELECT {$object_column}, meta_key, meta_value FROM {$meta_table} WHERE {$object_column} IN ({$id_list})" ), ARRAY_A ); 216 216 217 217 if ( ! empty( $meta_list ) ) {
Note: See TracChangeset
for help on using the changeset viewer.