- This topic has 4 replies, 1 voice, and was last updated 13 years, 9 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forums › Inside › This WordPress Site › All ' and " get replaced by ' and "
Every time I use symbols ” and ‘ in the post, they get replaced with ‘ and “
I need to find a way to stop that behavior.
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!
The same test from Firefox:
Testing single ‘ and double ” quotation marks.
I just added top ‘header’ from DWC.
Does ‘ and ” are displaying properly here?
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');
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!
© 2017 DomainWebCenter.com. All Rights Reserved. | Disclaimer | Contact the Editor