mhinze.com archive

this is an archive of the old blog, ended 6/16/08





    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);
     

    3 Responses to “Remove Curly Quotes From Wordpress 2.1”

    1. Removing curly quotes from WordPress 2.1.* - alex.moskalyuk Says:

      [...] 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 [...]

    2. Matt Says:

      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

    3. A WordPress fix for broken curly quotes in Magpie RSS titles at blogCrushr Says:

      [...] learned from this article that wptexturize() in wp-includes/formatting.php does the fancy quote translation, and the article [...]

    Leave a Reply

    You must be logged in to post a comment.

    © 2007 mhinze.com