WordPress.org

Forums

WP DS FAQ
Does not parse quotes correctly (4 posts)

  1. ClubUgly
    Member
    Posted 4 years ago #

    Product is not parsing quotes.

    Example:

    This
    I don't want my family or friends to know, will everything be private?

    Displays

    I don\'t want my family or friends to know, will everything be private?

    This
    Yes! Attorneys are bound by professional standards of confidentiality commonly known as the "attorney-client privilege."

    Displays
    Yes! Attorneys are bound by professional standards of confidentiality commonly known as the \\\"attorney-client privilege.\\\"

    http://wordpress.org/extend/plugins/wp-ds-faq/

  2. DiamondSteel
    Member
    Plugin Author

    Posted 4 years ago #

    Do you have an ability to check if the «Magic Quotes» is activated on your hosting? I can’t repeat the error: http://wp-plugins.diamondsteel.ru/wp-ds-faq/faq-wp-ds-faq#14

  3. hudolejev
    Member
    Posted 3 years ago #

    I have the same issue (WP 3.1.3, 3.2.1, 3.3).

    This happens if editing questions directly on FAQ page that is displayed to visitors. I cannot check if it is working from inside wp-admin as the plugin (or my setup) seems to have another issue with that, but it used to work correctly in wp-admin before.

    magic_quotes_gpc is off.

  4. hudolejev
    Member
    Posted 3 years ago #

    The problem is, WordPress is doing auto-escaping itself, even if magic_quotes_gpc are turned off. This is ugly and stupid, but assuming we have to live with it, here is a possible hack. In file wp-content/plugins/wp-ds-faq/ajax.php:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Fixed the issue for me.

    = EDIT =

    Oh well. Now they are deleting my code. Here it is:

    http://codepad.org/M7axVuUz

    Also it appeared that I was wrong and the quotes get extra-escaped even in wp-admin. So both frontend_update_quest and update_quest have to be fixed in ajax.php.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP DS FAQ
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags