Opened 3 weeks ago
#9294 new defect (bug)
bug with kses when using xprofile_get_field_data() outside xprofile loop on a rich text-enabled field
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.0.0 |
Component: | Extended Profile | Keywords: | |
Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.