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

WordPress Trac noreply at wordpress.org
Fri Sep 26 22:24:02 UTC 2014


#19550: Please provide option to disable wptexturize entirely
-------------------------------------------------+-------------------------
 Reporter:  jwz                                  |       Owner:
     Type:  enhancement                          |  DrewAPicture
 Priority:  normal                               |      Status:  closed
Component:  Formatting                           |   Milestone:  4.0
 Severity:  minor                                |     Version:  3.3
 Keywords:  has-patch wptexturize 4.0-early      |  Resolution:  fixed
  needs-docs                                     |     Focuses:  docs
-------------------------------------------------+-------------------------

Comment (by TomasM):

 Hello, I would like to ask for the usage example. I would like to disable
 certain texturized elements, like quotes. What code should I add to
 functions.php? Currently I use in parent theme:


 {{{
 remove_filter('the_content', 'wptexturize');
 remove_filter ('the_excerpt', 'wptexturize');
 remove_filter ('comment_text', 'wptexturize');
 }}}

 Also what code could I use in a child theme to enable wptexturize?

 Thank you!

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


More information about the wp-trac mailing list