[wp-trac] [WordPress Trac] #17581: 3.1.3 SERIOUS shortcode handling problem with content

WordPress Trac wp-trac at lists.automattic.com
Fri May 27 02:22:00 UTC 2011


#17581: 3.1.3 SERIOUS shortcode handling problem with content
--------------------------+-----------------------------
 Reporter:  wpweaver      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Shortcodes    |    Version:  3.1.3
 Severity:  critical      |   Keywords:
--------------------------+-----------------------------
 Handling of the content string passed to shortcode handlers seems to be
 seriously broken in 3.1.3.

 Symptoms: When the shortcode content spans multiple lines (as displayed in
 Visual editor):


 {{{
 [shortcode]multiline-content
 more content
 [/shortcode]
 }}}

 the content string passed to the shortcode handler is broken. Can't quite
 figure out how, but the parameter is not a correctly formed string. For
 example, most of the string functions simply don't work. Using
 substr($content,0,4), for example, yields a substring that is not 4
 characters long. strpos won't find anything. I went back to pre-3.1.3, and
 everything worked as expected using identical plugin code and identical
 content in the page.

 It seems okay when the content doesn't span multiple lines.

 I've attached a demo shortcode. See the output source to see wacky stuff.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17581>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list