[wp-trac] [WordPress Trac] #33179: Caption shortcode shouldn't output an invalid HTML ID

WordPress Trac noreply at wordpress.org
Wed Jul 29 17:51:44 UTC 2015


#33179: Caption shortcode shouldn't output an invalid HTML ID
--------------------------+-----------------
 Reporter:  helen         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.3
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33179>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list