Making links work better by filtering special quotes
-
Hi!
This is not a support question, I just found this plugin amazing and easy to implement, but there is a little bug when adding HTML links via edit profile signature field.
Basically bbPress is replacing
"
and'
with”
and’
which affects the HTML markup. But, grateful for the hooks you included, you can add the following code to your functions.php theme file or with a custom plugin and it should be fixed:add_filter('bbp_topic_content_append_signature', 'replace_special_quotes'); add_filter('bbp_reply_content_append_signature', 'replace_special_quotes'); function replace_special_quotes( $content ){ return str_replace( array('”', '’'), '"', $content ); }
Thank you, once again, for the plugin.
Samuel
- The topic ‘Making links work better by filtering special quotes’ is closed to new replies.