[buddypress-trac] [BuddyPress Trac] #8494: PHP error with WP Biography xProfile field type sanitization callback

buddypress-trac noreply at wordpress.org
Mon Jun 28 17:06:19 UTC 2021


#8494: PHP error with WP Biography xProfile field type sanitization callback
------------------------------+---------------------
 Reporter:  imath             |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  8.1.0
Component:  Extended Profile  |     Version:  8.0.0
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |
------------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12978" 12978]:
 {{{
 #!CommitTicketReference repository="" revision="12978"
 Make sure saving empty WP xProfile fields does generate an error

 WP xProfile field types are allowing their values to be empty. In such a
 case the `xprofile_set_field_data()` is using an array as the value to be
 saved. This is done to avoid the value of certain types of fields
 (checkboxes, multiselects) to be overwritten by the default value on next
 edit.

 For WP xProfile field types, we simply need to return an empty string in
 this case.

 Fixes #8494 (trunk)
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8494#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list