diff --git src/bp-xprofile/bp-xprofile-functions.php src/bp-xprofile/bp-xprofile-functions.php
index 4cd86ddad..28c8be56f 100644
|
|
function bp_xprofile_get_signup_field_ids() { |
1436 | 1436 | global $wpdb; |
1437 | 1437 | $bp = buddypress(); |
1438 | 1438 | |
1439 | | $signup_field_ids = $wpdb->get_col( "SELECT object_id FROM {$bp->profile->table_name_meta} WHERE object_type = 'field' AND meta_key = 'signup_position' ORDER BY meta_value ASC" ); |
| 1439 | $signup_field_ids = $wpdb->get_col( "SELECT object_id FROM {$bp->profile->table_name_meta} WHERE object_type = 'field' AND meta_key = 'signup_position' ORDER BY CONVERT(meta_value, SIGNED) ASC" ); |
1440 | 1440 | |
1441 | 1441 | wp_cache_set( 'signup_fields', $signup_field_ids, 'bp_xprofile' ); |
1442 | 1442 | } |