Forums
-
- Forum
- Posts
-
- Installation
- 28,380
- Troubleshooting
- 62,251
- Themes
- 10,390
- Plugins
- 15,311
- Requests & Feedback
- 14,897
- Showcase
- 3,252
-
adam’s fix will mean backslashes will be stored in the database. Worse, on upgrade, his changes will be lost and there all the backslashes will be.
Better to do this as a plugin, and filtering content before it goes in the db.
Just write a plugin, upload it and activate it. Like this:
<?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);
?>
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS