[buddypress-trac] [BuddyPress Trac] #9294: bug with kses when using xprofile_get_field_data() outside xprofile loop on a rich text-enabled field

buddypress-trac noreply at wordpress.org
Mon Jun 16 14:04:46 UTC 2025


#9294: bug with kses when using xprofile_get_field_data() outside xprofile loop on
a rich text-enabled field
------------------------------+-----------------------------
 Reporter:  DJPaul            |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Extended Profile  |    Version:  5.0.0
 Severity:  normal            |   Keywords:
------------------------------+-----------------------------
 When using `xprofile_get_field_data()` outside of the xprofile template
 loops (i.e. on a sidebar or a specific small section the site),
 `xprofile_filter_kses()` doesn't have $field_id set which means, for a
 rich text field such as the multi-text area, the additional KSES tags
 aren't added.

 Looking at the `xprofile_sanitize_data_value_before_display()` and
 `xprofile_sanitize_data_value_before_display_from_get_field_data()`
 functions, I wonder if both calls need null passed as the second
 parameter.

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


More information about the buddypress-trac mailing list