WordPress.org

Support

Support » Miscellaneous » Disabling wptexturize()

Disabling wptexturize()

  • creativebin
    Member

    @creativebin

    I am thinking about disabling the wptexturize function because I really don’t like how WordPress messes up my punctuation. I will just comment out any filter that uses this function. I guess my question is: Would it be harmful in anyway to the core? What are the disadvantages?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Doodlebee
    Member

    @doodlebee

    Would it be harmful in anyway to the core?

    If you’re commenting out the stuff from wp-includes/default-filters.php, no.

    What are the disadvantages?

    You won’t have that formatting. (of course, that’s an advantage, until you actually *want* it 😉 )

    amandabee
    Member

    @amandabee

    You could do it in your theme, by adding this:

    remove_filter(‘the_content’, ‘wptexturize’);

    to your functions.php file (which you might have to make).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabling wptexturize()’ is closed to new replies.