Opened 12 years ago
Closed 12 years ago
#30682 closed defect (bug) (fixed)
Some Customizer control description HTML is being escaped
| Reported by: | coreymckrill4ttf | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Customize | Version: | 4.1 |
| Severity: | normal | Keywords: | has-patch commit fixed-major |
| Cc: | Focuses: | ui |
Description
In #27981 the esc_html was removed from control description output since they are set programatically, not via user input. However, in 4.1-RC1 I am seeing escaped HTML in the descriptions of image upload controls. My best guess is that this is due to uploader controls now being rendered via JS template.
Attachments (2)
Change History (9)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Don't have time to test right now, but that's likely the issue. The double braces should be replaced with triple braces in the control template
{{ data.label/description }}to{{{ data.label/description }}}. Related: #29572, #21483.