[wp-trac] [WordPress Trac] #35591: Shortcode Attributes Parsing Issue

WordPress Trac noreply at wordpress.org
Fri Mar 4 00:11:57 UTC 2016


#35591: Shortcode Attributes Parsing Issue
-------------------------------+-----------------------
 Reporter:  markclotfelter     |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:
Component:  Shortcodes         |     Version:  4.4.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+-----------------------
Changes (by pcfreak30):

 * status:  closed => reopened
 * resolution:  worksforme =>


Comment:

 Regarding what @TobiasBg said, I can confirm that there is an attribute
 parsing bug.

 Put the following code in a plugin or theme:

 {{{#!php
 add_shortcode('test', function($atts){
                 return implode('',$atts);
         });
 }}}

 Then use this:

 {{{
  [test a="b" c="d > 1000"]
 }}}

 Result:


 {{{
  ”b””d>1000″
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35591#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list