[wp-trac] [WordPress Trac] #53646: Use `wp_sidebar_description` for sidebar description in the REST API

WordPress Trac noreply at wordpress.org
Mon Jul 12 17:20:49 UTC 2021


#53646: Use `wp_sidebar_description` for sidebar description in the REST API
--------------------------+-----------------------
 Reporter:  desrosj       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.8
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------
 The `wp_sidebar_description()` function is for retrieving and sanitizing a
 sidebar description as passed to `register_sidebar()`. This allows a
 subset of markup to be allowed as dictated by `wp_kses()`.

 The REST API should return the description as generated by
 `wp_sidebar_description()` and not by accessing the `$registered_sidebar`
 global directly.

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


More information about the wp-trac mailing list