Opened 3 years ago
Closed 3 years ago
#53646 closed defect (bug) (fixed)
Use `wp_sidebar_description` for sidebar description in the REST API
Reported by: | desrosj | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Widgets | Keywords: | has-patch commit dev-reviewed fixed-major |
Focuses: | rest-api | Cc: |
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)
#3
@
3 years ago
- Owner set to desrosj
- Resolution set to fixed
- Status changed from new to closed
In 51408:
#4
@
3 years ago
- Keywords dev-feedback fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening to backport [51408].
Note: See
TracTickets for help on using
tickets.
Patch looks great to me!