[resolved] Escaped quote inconsistency in WP2.2.1 (2 posts)

  1. tene
    Posted 8 years ago #

    I'm running WP 2.2.1 on a new Centos4 VPS, and hitting escaped quotes / addslashes problems when trying to enter an a tag.

    For example, entering:
    <a href="http://wordpress.org" alt="WordPress">WordPress</a>

    after a Save is left as:
    <a href=\"http://wordpress.org\" alt=\"WordPress\">WordPress</a>

    The escaped quotes (from addslashes it seems) mean the a tag doesn't work in the final page, it resolves in the browser to:
    compared to http://wordpress.org/ when entered in functions.php on the other site.

    The a tag is being entered in a field in a modified version of functions.php from Kubrick.

    Strangely, it works perfectly on WP 2.2.1 running on another VPS (RHEL4, not Centos), using exactly the same version of functions.php.
    <a href="http://wordpress.org">WordPress</a> is saved as it should be.

    Can anyone suggest what I need to do to stop the escaping behavior? Suspect I'm missing something obvious.

  2. tene
    Posted 8 years ago #

    Solved by turning Magic Quotes off in php.ini

Topic Closed

This topic has been closed to new replies.

About this Topic