Home Forums Inside This WordPress Site All ' and " get replaced by ' and "

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2265
    Udar Gromov
    Keymaster

    Every time I use symbols ” and ‘ in the post, they get replaced with ‘ and “

    I need to find a way to stop that behavior.

    #2348
    Udar Gromov
    Keymaster

    Testing single ‘ and double ” quotation marks.

    I just added top ‘header’ from DWC.

    Does ‘ and ” still display properly?

    [21:36] Will it also fix existing “bad” posts? – Yes, it does!

    #2349
    Udar Gromov
    Keymaster

    The same test from Firefox:

    Testing single ‘ and double ” quotation marks.

    I just added top ‘header’ from DWC.

    Does ‘ and ” are displaying properly here?

    #2350
    Udar Gromov
    Keymaster

    It is possible that problem is with one line of code added to’ bb-config.php’

    Now I took it out, and reloaded the page …

    require_once(dirname(__FILE__) . '/../../wp-load.php');

    #2351
    Udar Gromov
    Keymaster

    This line of code definitely causes the problem that described on Internet as:

    “all apostrophes and quotation marks are prefixed with backslashes”.

    I liked the solution with writing a new plugin with this code in it:

    <?php
    /* Plugin Name: Strip Slashes */
    add_filter('pre_topic_title', 'stripslashes', 40);
    add_filter('pre_post', 'stripslashes', 40);
    add_filter('bb_add_topic_tags', 'stripslashes', 40);
    ?>

    Does it work? – Yes!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.