WordPress Plugin: “Disable wptexturize”

"Disable wptexturize" is the second plugin I've created for WordPress. To be honest, as far as plugins go, they don't get much simpler than this one. Aside from the header info, it consists of a grand total of three lines of code. Those three lines, though, make a world of difference to someone trying to run a site where formatting is important.

The purpose of this plugin is to stop the wptexturize filter from running on your content, the excerpt for your content (if you use it), and the comments left by your visitors. The texturizer mangles your code by converting what you actually type to what it thinks you mean. For example, the difference between "--" and "–" or straight quotes (what normal people use) and smart quotes (what Microsoft Word uses) is night and day when you're trying to run a command on a *nix system or compile a bit of code.

To be honest, I don't have any idea why disabling the texturizer isn't an option in the default code. I have to believe that there are tons of people who are annoyed by it, just as I was...

Regardless, here's the solution for you. Turn my plugin on, the texturizer goes away. Turn my plugin off, it comes back. Installation is simple, just unzip the file below into your plugins directory and then activate it from the plugins page in your blog's admin section.

Download the "Disable Texturizer" Wordpress Plugin

15 Responses to “WordPress Plugin: “Disable wptexturize””


  1. 1 Jesse

    I think you have the wrong link posted :)

  2. 2 Jason

    @Jesse,

    Whoops... Fixed. Thanks for the heads up.

  3. 3 Ben

    Thank you so much for writing this plugin. The WP Texturizer has always been my biggest headache with wordpress and your plugin has fixed it forever (I hope). Thanks for publishing this.

  4. 4 Jason

    @Ben,

    Glad you like it.

  5. 5 Todd Werth

    Thank you sir, you saved me from having to search through the code to disable it. Now I just need to figure out what is changing \n into n.

  6. 6 Klark

    does this work in the feed as well?

  7. 7 Jason

    @Klark,

    Yes, it does work on the feed.

  8. 8 Eule

    Is this plugin still up to date? Is it working with the newest version of wordpress?

  9. 9 Jason

    @Eule,

    It's only three lines so there's not really anything to keep up to date. As to the versions it works with, I'm using it here and I'm running 2.3.3 right now.

  10. 10 Rob Thunder

    Thank you.

    Thank you.

    Thank you.

    Thank you...

    THANK YOU!!!

    That damnable wptexturize filter has been the bane of my existence in the world of Wordpress for years. Finally I am rid of that.

    Having extensive PHP experience, it was getting so that I was willing to spend several days -if need be- to simply plow through every single line of code in all the Wordpress files to see if I could locate exactly what it was that was prettifying all my single and double quotes (as well as mangling my example codes) and eradicate it with extreme prejudice. You saved me that trouble, Jason. :o) I can now begin blogging the way I want to for the first time.

    I read elsewhere about those 3 lines of code but no one seemed to have a clear idea as to exactly where to use them. I read vague implications that it had something to do with myhacks.php (couldn't find this file in Wordpress 2.51) and vars.php in the wp-includes folder (of course, no one said exactly where to use those lines of code in vars.php).

    Well, well, just slap it in a plugin and that's it, that's all. Who'da thunk it? (obviously you did)..

    Thanks again, man.

    Oh and for others, it works fine in Wordpress 2.51 (latest version as of this writing)

  11. 11 Leo

    FYI, there's a already plugin created for the same purpose.

    http://sparanoid.com/taxonomy/blog/wordpress/quotmarks-replacer/

  12. 12 Mire

    hey. Thx for the plug in. Works like a charm

  13. 13 andar909

    hi, andar here, i just read your post. i like very much. agree to you, sir.

  14. 14 StumbleUpon

    Great information! Thanks for writing this. It is an honor to participate in the discussion.

  1. 1 Plain text Wordpress (Look Ma! No curly quotes!)

Leave a Reply

Note: This post is over 10 months old. You may want to check later in this blog to see if there is new information relevant to your comment.

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Use of a non-personal web site or blog in the "Web Site" field and/or leaving a comment that is off-topic or inappropriate may result in the comment being edited or removed at the discretion of the site owner.






Close
Powered by ShareThis