#53597 closed defect (bug) (fixed)
Correct the documentation for the `wp_kses_allowed_html` filter
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.9 |
| Component: | Security | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
The documentation for the wp_kses_allowed_html filter mistakenly documents the first parameter as the context instead of as the array of allowed HTML tags. This is due to the fact that the $context parameter can be used as either, and the filter falls within the condition where $context is actually an array of HTML tags.
Improving the variable names passed to the canonical instance of the filter helps clarify this. The six further instances of the filter immediately below it all reference the canonical documentation.
Change History (3)
This ticket was mentioned in PR #1469 on WordPress/wordpress-develop by johnbillion.
5 years ago
#1
- Keywords has-patch added; needs-patch removed
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/53597