15
Mar
Remove Curly Quotes From Wordpress 2.1
wordpress 2.1 automatically changes regular quotation marks " into curly versions “ or ” and apostrophes ' into ‘ or ’
this is very annoying behavior
there is a solution! (and it's different than the 2.0 solution)
UPDATE: The Unfancy Quote Plugin is the better permanent solution (thanks)
in wp-includes/format.php comment this line in wptexturize()
$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
so that it becomes
//$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
March 15th, 2007 at 2:55 pm
[...] site, and each string variable gets encoded with unusable fancy quotes. mhinze.com recently shared the solution for removing curly quotes on WordPress 2.1, but it actually might do more than you expect [...]
March 16th, 2007 at 5:41 am
to alex:
i think the static_characters array is quite valuable. it allows you to inject those special curly double quotes at will - but won't stop wordpress from converting actual quotation marks "
the dynamic characters array is what you want to edit
April 25th, 2007 at 10:13 am
[...] learned from this article that wptexturize() in wp-includes/formatting.php does the fancy quote translation, and the article [...]