- Author: Scott Reilly
- Version: 2.3
- First released: 2009-05-28
- Last update: 2025-04-08
- Compatibility: WP 5.5 – 6.8
- Download: [ zip ]
- Description:
Prevent WordPress from converting single and double quotation marks into their curly alternatives.
-
Extended Description
By default, WordPress converts single and double quotation marks into their curly alternatives. This plugin prevents that from happening, so you can enjoy your quotation marks in their non-curly glory. If your content happens to already have curly quotation marks in it, then this plugin can optionally also convert them to their non-curly alternatives.
Note: Despite the unfortunately misleading name, this plugin is NOT the antithesis of WordPress’s
wptexturize()
function. This ONLY prevents WordPress from making HTML entity code substitutions of single and double quotation marks with their curly alternatives and does NOT preventwptexturize()
from making any other character and string substitutions. See the FAQ for details on the filters processed by the plugin.Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Developer Documentation
Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the numerous hooks provided by the plugin. Those hooks are listed below to provide an overview of what’s available.
c2c_wpuntexturize
: An alternative approach to safely invokec2c_wpuntexturize()
in such a way that if the plugin were deactivated or deleted, then your calls to the function won’t cause errors in your site. This only applies if you use the function directly, which is not typical usage for most users.wpuntexturize_filters
: customize what filters to hook to be filtered with wpuntexturize. See the Description section for a complete list of all filters that are filtered by default.c2c_wpuntexturize_replacements
: Customize the character replacements handled by the plugin.c2c_wpuntexturize_convert_curly_quotes
: Enable conversion of preexisting curly quotes into their non-curly alternatives.
Find out more at the plugin’s WordPress Plugin Repository page.
-
Screenshots
Click to see full-size image.
-
Installation
- Install via the built-in WordPress plugin installer. Or download and unzip
wpuntexturize.zip
inside the plugins directory for your site (typicallywp-content/plugins/
) - Activate the plugin through the ‘Plugins’ admin menu in WordPress
- Optional: If you want to also convert existing curly quotation marks within posts to their non-curly alternatives, then on the Settings -> Reading admin page check the checkbox labeled “Convert existing curly quotes in posts to their non-curly alternatives”. (Reminder that the plugin will always prevent WordPress from converting non-curly quotation marks to the curly alternatives.)
- Install via the built-in WordPress plugin installer. Or download and unzip
-
Release Log
2.3 (2025-04-07)
- Change: Remove code supporting versions of WP older than 5.5
- Change: Escape output of all translated strings
- Change: Discontinue explicit and unnecessary loading of textdomain
- Change: Remove
is_wp_55_or_later()
- Change: Sanitize the plugin’s setting value
- New: Add
sanitize_boolean()
- Change: Note compatibility through WP 6.8+
- Change: Drop compatiblity with versions of WP older than 5.5
- Change: Confirm compatiblity through PHP 8.3+
- Change: Shorten plugin description in plugin header and readme.txt
- Fix: Fix typo in ‘Author URI’ plugin header value
- Change: Update copyright date (2025)
- Unit tests:
- Change: Explicitly define return type for overridden method
- Change: Delete tests for removed back-compatibility
2.2.2 (2024-08-08)
- Change: Note compatibility through WP 6.6+
- Change: Update copyright date (2024)
- Change: Reduce number of ‘Tags’ in readme.txt
- Change: Remove development and testing related files from release packaging
- Unit tests:
- Hardening: Prevent direct web access to
bootstrap.php
- Change: In bootstrap, store path to plugin file constant
- Change: In bootstrap, add backcompat for PHPUnit pre-v6.0
- Hardening: Prevent direct web access to
2.2.1 (2023-04-29)
- Change: Note compatibility through WP 6.3+
- Change: Update copyright date (2023)
- Change: Add link to DEVELOPER-DOCS.md in README.md
- New: Add
.gitignore
file - Unit tests:
- Fix: Allow tests to run against current versions of WordPress
- New: Add
composer.json
for PHPUnit Polyfill dependency - Change: Prevent PHP warnings due to missing core-related generated files
-
Copyright & Disclaimer
Copyright © 2009-2025 by Scott Reilly (aka coffee2code)This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -
Discussion / Support
Have any questions, comments, or suggestions? Please provide them via the plugin’s WordPress.org support forum. I’ll do my best to reply in a timely fashion and help as best I can.
Unfortunately, I cannot provide guaranteed support, nor do I provide support via any other means.
Was this plugin useful useful to you? Consider giving it a rating. If you’re inclined to give it a poor rating, please first post to the support forum to give me a chance to address or explain the situation.
Categories
4 replies on “wpuntexturize”
[…] wpuntexturize by Scott Reilly prevents WordPress from displaying single and double quotation marks as their curly alternatives. Works with WP 1.5+, 2.0+, 2.1+, 2.2+, 2.3+, and 2.5+ Verwandte Artikel […]
[…] As an added bonus, looking at the previous post on awk got me all pissed off about “smart quotes” in WordPress blogs and the problems they cause when copying and pasting code examples. So, out they go. […]
[…] The easy way if it works – if you only care about single and double quotation marks, try the wpuntexturize plugin which prevents “WordPress from displaying single and double quotation marks as their curly […]
[…] easiest way to fix this problem is with the wpuntexturize plugin, which prevents WordPress “from displaying single and double quotation marks as their […]