#2610 closed defect (bug) (fixed)
Displayed user data improvements
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.5.4 | Priority: | highest omg sweet tea |
Severity: | critical | Version: | 2.1 |
Component: | Component - Users | Keywords: | |
Cc: |
Description ¶
When viewing or editing a user profile, certain user data is not prepped for display (either by WordPress or bbPress.) An assumption was made that WordPress's default filters would cover this for us via the sanitize_user_field()
function, however more investigation uncovered this is not the case, as most of these are sanitized only when is_admin()
is true.
The affected functions are:
bbp_displayed_user_field()
bbp_get_displayed_user_field()
Related to #1999. Patch incoming.
Commits (2)
- [5369] Introduce
bbp_sanitize_displayed_user_field()
function to handle the sanitizing of displayed user data, and add it to thebbp_get_displayed_user_field
filter. Props mazengamal. See #2610 (trunk).… by @johnjamesjacoby 11 years ago - [5370] Introduce
bbp_sanitize_displayed_user_field()
function to handle the sanitizing of displayed user data, and add it to thebbp_get_displayed_user_field
filter. Props mazengamal. See #2610 (2.5 branch).… by @johnjamesjacoby 11 years ago
Pull Requests
- Loading…
Note: See
TracTickets for help on using
tickets.
In 5369: