[wp-trac] Re: [WordPress Trac] #10082: shortcode bug

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 19 18:06:22 GMT 2009

#10082: shortcode bug
 Reporter:  Denis-de-Bernardy  |       Owner:  petervanderdoes
     Type:  defect (bug)       |      Status:  accepted       
 Priority:  normal             |   Milestone:  2.8.1          
Component:  Shortcodes         |     Version:  2.8            
 Severity:  critical           |    Keywords:                 

Comment(by plakadiva):

 Hallo, maybe this could help: I patched wp-includes/shortcodes.php and my
 shortcodes worked fine after that.

 change line 178 from
 return '(.?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)';
 return '(.*?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.*?)';

 So the only change was the amount of strings before and after shortcodes.
 I´m not sure if that´s a complete solution but it worked well with the
 problems discribed by GamerZ

Ticket URL: <http://core.trac.wordpress.org/ticket/10082#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list