Opened 10 years ago
Closed 6 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | Security | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
First pass added in 39542.0.diff