[wp-trac] [WordPress Trac] #6969: Don't apply wptexturize() to the insides of shortcode tags

WordPress Trac wp-trac at lists.automattic.com
Wed May 14 11:47:58 GMT 2008


#6969: Don't apply wptexturize() to the insides of shortcode tags
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  anonymous  
     Type:  enhancement   |      Status:  new        
 Priority:  normal        |   Milestone:  2.7        
Component:  General       |     Version:  2.5.1      
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 I have this for my post contents:

 {{{
 [code lang="php"]$foo = 'bar';[/code]
 }}}

 The problem is my shortcode function gets this passed to it for the
 content string:

 {{{
 $foo = ‘bar’;
 }}}

 `wptexturize()` should be smart enough to not format the contents of
 registered shortcodes. If plugins want their contents formatted, they can
 pass the contents to the `wptexturize()` function itself.

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


More information about the wp-trac mailing list