mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-25 00:05:44 +00:00
This switches `WP_REST_Sidebars_Controller` to use `wp_sidebar_description()` for retrieving the description of a given sidebar instead of referencing the value in the `$wp_registered_sidebars` global variable directly. `wp_sidebar_description()` uses `wp_kses()` to only allow the default list of `$allowed_tags` to be present in a sidebar’s description. Props timothyblynjacobs, desrosj, SergeyBiryukov. Merges [51408] to the 5.8 branch. Fixes #53646. Built from https://develop.svn.wordpress.org/branches/5.8@51412 git-svn-id: http://core.svn.wordpress.org/branches/5.8@51023 1a063a9b-81f0-0310-95a4-ce76da25c4cd