#33179 closed defect (bug) (fixed)
Caption shortcode shouldn't output an invalid HTML ID
| Reported by: | helen | Owned by: | helen |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
While looking more closely at core shortcodes post-4.2.3, I noticed that the caption one escapes the provided ID and is safe, but that doesn't mean it's necessarily going to produce a valid HTML ID. We should also use sanitize_html_class(), since that's what it's for.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 33489: