WordPress/wp-includes/rest-api
desrosj a3a7ccf107 Widgets: Use wp_sidebar_description() to retrieve a sidebar’s description.
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.
Fixes #53646.
Built from https://develop.svn.wordpress.org/trunk@51408


git-svn-id: http://core.svn.wordpress.org/trunk@51019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-12 19:03:57 +00:00
..
endpoints Widgets: Use wp_sidebar_description() to retrieve a sidebar’s description. 2021-07-12 19:03:57 +00:00
fields REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:12:58 +00:00
search
class-wp-rest-request.php REST API: Return detailed error information from request validation. 2021-02-02 17:28:02 +00:00
class-wp-rest-response.php
class-wp-rest-server.php Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards. 2021-06-30 18:43:58 +00:00