Opened 8 years ago
Closed 4 years ago
#39542 closed defect (bug) (fixed)
wp_kses() et al. $allowed_html parameter not documented as accepting string values
Reported by: | jdgrimes | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Security | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
Since [21790] as part of 3.5.0, wp_kses()
and some of its companion functions have accepted a string as the value of the $allowed_html
parameter, which is then expanded to an array as needed using wp_kses_allowed_html()
. However, these functions are still documented as only accepting an array for $allowed_html
. The inline docs for them need to be updated to indicate that a string is also accepted. Probably they should reference wp_kses_allowed_html()
, where the possible values are documented.
Attachments (1)
Change History (8)
This ticket was mentioned in Slack in #core by noisysocks. View the logs.
4 years ago
#5
@
4 years ago
- Resolution set to worksforme
- Status changed from new to closed
Looks like this was updated in [43016].
Note: See
TracTickets for help on using
tickets.
First pass added in 39542.0.diff