Opened 3 years ago
Closed 3 years ago
#60324 closed defect (bug) (fixed)
Add missing esc_html()
| Reported by: | nareshbheda | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.5 |
| Component: | Customize | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | coding-standards |
Description
Add missing escaping in wp-includes/class-wp-customize-control.php.
Attachments (2)
Change History (10)
#5
@
3 years ago
Good catches!
- [20295] added
WP_Customize_Controlwithout escaping$labelfor theoptionelement, though the changeset escaped the text used for the input labels. - [32806] added
WP_Customize_Nav_Menu_Location_Control.
I also found similar <option elements for bulk actions in WP_List_Table, but should this ticket remain focused on the Customizer classes instead of searching wp-admin too?
#6
@
3 years ago
- Keywords changes-requested added
Given similar instances are escaped, these one should be escaped too, at least for better consistency.
Adding changes-requested to take into account comment:3.
I also found similar <option elements for bulk actions in WP_List_Table, but should this ticket remain focused on the Customizer classes instead of searching wp-admin too?
Yeah I think that's another ticket :)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
There is another instance of this on Line 80 in wp-includes/customize/class-wp-customize-nav-menu-location-control.php
It should be