#34090 closed enhancement (fixed)
Prevent Registration of Invalid Shortcode Names
Reported by: | miqrogroove | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.4 | Priority: | high |
Severity: | normal | Version: | |
Component: | Shortcodes | Keywords: | roadmap has-patch |
Focuses: | Cc: |
Description
All versions of the Shortcode API have allowed registration of any shortcode name, even though certain characters would be impossible to use inside of a shortcode.
In addition to specifying which shortcode delimiters are reserved, we also need to prevent any use of HTML special characters in shortcode names.
See https://make.wordpress.org/core/2015/09/29/shortcode-roadmap-draft-two/
Attachments (3)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Adds unit tests.