Changeset 7812 for trunk/bp-core/bp-core-classes.php
- Timestamp:
- 02/06/2014 07:38:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r7800 r7812 302 302 // the xprofile table 303 303 } else { 304 $fullname_field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", bp_xprofile_fullname_field_name() ) );305 306 304 $this->uid_name = 'user_id'; 307 305 $sql['select'] = "SELECT u.{$this->uid_name} as id FROM {$bp->profile->table_name_data} u"; 308 $sql['where'][] = "u.field_id = {$fullname_field_id}";306 $sql['where'][] = $wpdb->prepare( "u.field_id = %d", bp_xprofile_fullname_field_id() ); 309 307 $sql['orderby'] = "ORDER BY u.value"; 310 308 $sql['order'] = "ASC";
Note: See TracChangeset
for help on using the changeset viewer.