WordPress beautifies single and double quotes, which can be a pain, when someone is posting a code sample. Going to functions-formatting.php inside wp-includes folder and commenting the lines below out removes all beautification for quotes:
$curl = preg_replace("/'s/", '’s', $curl);
$curl = preg_replace("/'(\d\d(?:’|')?s)/", "’$1", $curl);
$curl = preg_replace('/(\s|\A|")\'/', '$1‘', $curl);
$curl = preg_replace('/(\d+)"/', '$1″', $curl);
$curl = preg_replace("/(\d+)'/", '$1′', $curl);
$curl = preg_replace("/(\S)'([^'\s])/", "$1’$2", $curl);
$curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl);
$curl = preg_replace('/"(\s|\S|\Z)/', '”$1', $curl);
$curl = preg_replace("/'([\s.]|\Z)/", '’$1', $curl);
$curl = preg_replace("/ \(tm\)/i", ' ™', $curl);
$curl = str_replace("''", '”', $curl);
Removing curly quotes from WordPress 2.0
-
http://www.slug.it/naufraghi/remove-curly-quotes-from-wordpress-20/ Naufraghi nella rete » Blog Archive » Remove curly quotes from WordPress 2.0
-
http://www.popjournalism.ca/ Robert
-
http://flashnbeyond.com/blog Christopher Tan
-
http://www.newsmediarelease.com Dan
-
http://singpolyma.net/ Stephen Paul Weber
-
http://mhinze.com/remove-curly-quotes-in-wordpress-21/ remove curly quotes in wordpress 2.1 » mhinze.com
-
http://www.moskalyuk.com/blog/removing-curly-quotes-from-wordpress-21/1403 Removing curly quotes from WordPress 2.1.* – alex.moskalyuk
-
http://www.andrewbibby.co.uk Andrew
