Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#53597 closed defect (bug) (fixed)

Correct the documentation for the `wp_kses_allowed_html` filter

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 5.9 Priority: normal
Severity: normal Version:
Component: Security Keywords: has-patch
Focuses: docs Cc:

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.


4 years ago
#1

  • Keywords has-patch added; needs-patch removed

#2 @johnbillion
4 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 51675:

Security: Correct the inline docs for the wp_kses_allowed_html filter.

Props peterwilsoncc

Fixes #53597

Note: See TracTickets for help on using tickets.