#33179 closed defect (bug) (fixed)
Caption shortcode shouldn't output an invalid HTML ID
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | |
Focuses: | Cc: |
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.
In 33489: