[wp-trac] [WordPress Trac] #39542: wp_kses() et al. $allowed_html parameter not documented as accepting string values

WordPress Trac noreply at wordpress.org
Tue Jan 10 21:05:38 UTC 2017


#39542: wp_kses() et al. $allowed_html parameter not documented as accepting string
values
--------------------------+-----------------------------
 Reporter:  jdgrimes      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.5
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 Since [21790] as part of 3.5.0, `wp_kses()` and some of its companion
 functions have accepted a string as the value of the `$allowed_html`
 parameter, which is then expanded to an array as needed using
 `wp_kses_allowed_html()`. However, these functions are still documented as
 only accepting an array for `$allowed_html`. The inline docs for them need
 to be updated to indicate that a string is also accepted. Probably they
 should reference `wp_kses_allowed_html()`, where the possible values are
 documented.

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


More information about the wp-trac mailing list