Opened 5 years ago
Closed 5 years ago
#53646 closed defect (bug) (fixed)
Use `wp_sidebar_description` for sidebar description in the REST API
| Reported by: | desrosj | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | Widgets | Version: | 5.8 |
| Severity: | normal | Keywords: | has-patch commit dev-reviewed fixed-major |
| Cc: | Focuses: | rest-api |
Description
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.
Attachments (1)
Change History (8)
#4
@
5 years ago
- Keywords dev-feedback fixed-major added
- Resolution fixed
- Status closed → reopened
Reopening to backport [51408].
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch looks great to me!