[wp-meta] [Making WordPress.org] #6129: Multiple Make WordPress Team Selections Not Saved on .org Profile

Making WordPress.org noreply at wordpress.org
Mon Mar 21 04:04:34 UTC 2022


#6129: Multiple Make WordPress Team Selections Not Saved on  .org Profile
--------------------------+--------------------------
 Reporter:  timohaver     |       Owner:  coffee2code
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Profiles      |  Resolution:
 Keywords:                |
--------------------------+--------------------------
Changes (by dd32):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Hey @coffee2code This appears to have broken being able to select multiple
 teams, at least upon edit of ones profile.

 Example POST payload as a result of this:
 {{{
 &field_24=Yes
 &field_29=38
 &field_30[][]=Meta+Team
 &profile-group-edit-submit=Save+Changes+
 &field_ids=24,29,30
 &_wpnonce=12345abcd
 &_wp_http_referer=/dd32/profile/edit/group/5/
 }}}

 `field_30[][]` seems wrong.

 This is the cause of the PHP Warnings on WordPress.org:
 {{{
 preg_match() expects parameter 2 to be string, array given

 Source: POST https://profiles.wordpress.org/dd32/profile/edit/group/5/
 Timestamp: Mon, 21 Mar 2022 03:42:16 +0000 (1647834136)
 File: wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-
 field-type.php
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6129#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list