[wp-trac] [WordPress Trac] #53597: Correct the documentation for the `wp_kses_allowed_html` filter

WordPress Trac noreply at wordpress.org
Mon Jul 5 18:01:48 UTC 2021


#53597: Correct the documentation for the `wp_kses_allowed_html` filter
--------------------------+-------------------------
 Reporter:  johnbillion   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.9
Component:  Security      |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  docs          |
--------------------------+-------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53597>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list