Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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

#2 @johnbillion
5 years ago

  • Owner set to johnbillion
  • Resolution → fixed
  • Status new → 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.