[wp-trac] [WordPress Trac] #40575: Typo in wp_kses_allowed_html()

WordPress Trac noreply at wordpress.org
Wed Apr 26 13:35:17 UTC 2017


#40575: Typo in wp_kses_allowed_html()
--------------------------+------------------------------
 Reporter:  henry.wright  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  4.7.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => needs-patch
 * component:  General => Formatting


Comment:

 Introduced in [21790], docs added in [27739].

 Given that this instance of the filter is only applied if `is_array(
 $context )` and provides `explicit` as the actual context, the usage
 appears to be correct, it just needs to be documented better.

 The function docs should mention that `$context` itself can be an array of
 allowed tags.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40575#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list