[wp-trac] [WordPress Trac] #19550: Please provide option to disable wptexturize entirely

WordPress Trac noreply at wordpress.org
Tue Mar 18 13:36:25 UTC 2014


#19550: Please provide option to disable wptexturize entirely
-----------------------------------+-----------------------------
 Reporter:  jwz                    |       Owner:
     Type:  enhancement            |      Status:  reopened
 Priority:  normal                 |   Milestone:  Future Release
Component:  Formatting             |     Version:  3.3
 Severity:  minor                  |  Resolution:
 Keywords:  has-patch wptexturize  |     Focuses:
-----------------------------------+-----------------------------

Comment (by miqrogroove):

 See for yourself:


 {{{
 <?php
 echo wptexturize( 'This is a test' );

 function wptexturize($text) {
     static $opening_quote, $run_texturize = true;
     if ( false === $run_texturize )
         return $text;
     if ( empty( $opening_quote ) ) {
         $run_texturize = FALSE;  // apply_filters( 'run_wptexturize',
 $run_texturize );
         $opening_quote = '&#8220';
     }
     $text = 'fail!';
     return $text;
 }
 ?>
 }}}

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


More information about the wp-trac mailing list