[buddypress-trac] [BuddyPress Trac] #9127: Critical error when updating xProfile fields through REST API using PHP 8+

buddypress-trac noreply at wordpress.org
Fri Apr 12 13:00:28 UTC 2024


#9127: Critical error when updating xProfile fields through REST API using PHP 8+
-------------------------------------------------+-------------------------
 Reporter:  niftythree                           |       Owner:
                                                 |  espellcaste
     Type:  defect (bug)                         |      Status:  closed
 Priority:  low                                  |   Milestone:  14.0.0
Component:  REST API                             |     Version:  12.4.0
 Severity:  minor                                |  Resolution:  fixed
 Keywords:  has-unit-tests needs-testing-info    |
  has-dev-note has-patch commit                  |
-------------------------------------------------+-------------------------
Changes (by espellcaste):

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


Comment:

 In [changeset:"13791" 13791]:
 {{{
 #!CommitTicketReference repository="" revision="13791"
 Strip slashes from a `BP_XProfile_ProfileData` field value only if the
 field is serialized.

 This change makes sure that XProfile fields with serialized data correctly
 keeps the string with apostrophes.

 Props imath and niftythree
 See https://github.com/buddypress/BP-REST/pull/497
 Closes https://github.com/buddypress/buddypress/pull/268
 Fixes #9127
 }}}

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


More information about the buddypress-trac mailing list