[buddypress-trac] [BuddyPress Trac] #5425: wp-admin/profile not saving all files since r7970

buddypress-trac noreply at wordpress.org
Tue Feb 25 01:56:11 UTC 2014


#5425: wp-admin/profile not saving all files since r7970
--------------------------+-----------------------
 Reporter:  imath         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.0
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 since r7970, the wp-admin/profile is not working the right way.
 I think it's due to the direct use of {{{wp_parse_id_list()}}} on
 {{{$_POST['field_ids']}}}.

 As the wp-admin profile displays all groups of field on one page (which is
 not the case on front end), {{{$_POST['field_ids']}}} is an array
 containing each group list of comma separated field ids.

 For instance :
 group base has 2 fields > id 1 and id 2
 another group of fields have 1 field > id 3
 Then the  {{{$_POST['field_ids']}}} is not 1,2,3 but array( 0 => "1,2", 1
 => "3" ). So we first need to merge the values in a unique comma separated
 list before using {{{wp_parse_id_list()}}}

 The patch is a way to come back from ("revenir en arrière par rapport à")
 r7970

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5425>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list