diff --git bp-xprofile/bp-xprofile-admin.php bp-xprofile/bp-xprofile-admin.php
index 99dcfd8..1c275db 100644
|
|
class BP_XProfile_User_Admin { |
607 | 607 | bp_core_redirect( $redirect_to ); |
608 | 608 | } |
609 | 609 | |
| 610 | /** |
| 611 | * Unlike front-end edit-fields screens, the wp-admin/profile displays all |
| 612 | * groups of fields on a single page, so the list of field ids is an array |
| 613 | * gathering for each group of fields a distinct comma separated list of ids. |
| 614 | * As a result, before using the wp_parse_id_list() function, we must ensure |
| 615 | * that these ids are "merged" into a single comma separated list. |
| 616 | */ |
| 617 | $merge_ids = join( ',', $_POST['field_ids'] ); |
| 618 | |
610 | 619 | // Explode the posted field IDs into an array so we know which fields have been submitted |
611 | | $posted_field_ids = wp_parse_id_list( $_POST['field_ids'] ); |
| 620 | $posted_field_ids = wp_parse_id_list( $merge_ids ); |
612 | 621 | $is_required = array(); |
613 | 622 | |
614 | 623 | // Loop through the posted fields formatting any datebox values then validate the field |