[wp-trac] [WordPress Trac] #29661: Should Shortcode Attributes Allow HTML Special Characters?

WordPress Trac noreply at wordpress.org
Sat Sep 13 17:51:53 UTC 2014


#29661: Should Shortcode Attributes Allow HTML Special Characters?
-------------------------+-----------------------------
 Reporter:  miqrogroove  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Shortcodes   |    Version:  3.8
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 This question has a history of going unanswered.

 In the Codex at http://codex.wordpress.org/Shortcode_API there is no
 mention of using HTML elements or any special characters within shortcode
 attributes.  I added a section about syntax and left this feature as
 "unofficially allowed."

 In the unit tests under the Tests_Shortcode class, there are no tests that
 mention any HTML special characters inside of shortcodes.

 In #28564 we agreed it would make sense to not break HTML elements where
 they are already being used inside of attributes.

 In #29608 and #29658 we are seeing reports of unencoded angle braces and
 ampersands being used inside of shortcode attributes, which were broken in
 4.0.

 In #29557 the shortcode HTML filter will likely be removed to fix this and
 other problems in 4.0.1.

 So the issues involve documentation, unit tests, and questions about how
 this is supposed to work in the visual editor.

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


More information about the wp-trac mailing list