[wp-trac] [WordPress Trac] #15600: shortcode_unautop returns emtpy string

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 9 22:01:03 UTC 2010


#15600: shortcode_unautop returns emtpy string
--------------------------+-------------------------------------------------
 Reporter:  mdbitz        |       Owner:                                              
     Type:  defect (bug)  |      Status:  new                                         
 Priority:  normal        |   Milestone:  3.1                                         
Component:  Formatting    |     Version:  3.0.1                                       
 Severity:  major         |    Keywords:  shortcode_autop, ShortCode reporter-feedback
--------------------------+-------------------------------------------------

Comment(by mdawaffe):

 I can reproduce this on a site with 90 shortcodes installed a large post
 with 62 captioned images (using the caption shortcode) with interstitial
 HTML between each image.

 In fact, if I remove all but the caption shortcode from
 {{{shortcode_unautop()}}}, I can still reproduce.

 I get PREG_BACKTRACK_LIMIT_ERROR.

 Making preg operator matching the shortcode's content possesive solves
 this for my test case.  Patch attached.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15600#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list