Forums
-
- Forum
- Posts
-
- Installation
- 28,380
- Troubleshooting
- 62,255
- Themes
- 10,391
- Plugins
- 15,313
- Requests & Feedback
- 14,907
- Showcase
- 3,252
-
Rather than hacking the core, you should put that code into your theme’s functions.php. That’s what apply_filters and add_filter is for!!!!!!!!!!
Add this to your theme’s functions.php:
add_filter( 'get_topic_title', 'strip_the_title_slashes', 20, 2);
function strip_the_title_slashes( $title, $id ) {
return stripslashes( $title );
}
add_filter( 'get_post_text', 'strip_the_text_slashes', 20, 2);
function strip_the_text_slashes( $text, $id ) {
return stripslashes( $text );
}
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS