[wp-trac] [WordPress Trac] #28564: Shortcode Attributes with HTML Tags no longer working

WordPress Trac noreply at wordpress.org
Tue Jun 17 15:02:16 UTC 2014


#28564: Shortcode Attributes with HTML Tags no longer working
--------------------------+--------------------
 Reporter:  baden03       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  4.0
Component:  Shortcodes    |     Version:  trunk
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------
Changes (by SergeyBiryukov):

 * priority:  normal => high
 * severity:  normal => major
 * milestone:  Awaiting Review => 4.0


Comment:

 Broken in [28727].

 To reproduce:
 1. Register a shortcode:
 {{{
 function footag_func( $atts ) {
      return "foo = {$atts['foo']}";
 }
 add_shortcode('footag', 'footag_func');
 }}}
 2. Create a post with this content: `[expand title="<strong>Strong
 Test</strong>"][/expand]`.

 Output:
 * Before [28727]: `title = <strong>Strong Test</strong>`.
 * After [28727]: `title = »<strong>Strong`.

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


More information about the wp-trac mailing list