Ticket #362: add_pre_post.patch
File add_pre_post.patch, 672 bytes (added by , 16 years ago) |
---|
-
buddypress-enable.php
8 8 Author URI: http://apeatling.wordpress.com/ 9 9 */ 10 10 11 function for_buddypress_pre_post($post_text, $post_id, $topic_id){ 12 $post_text = stripslashes(stripslashes_deep($post_text)); 13 $post_text = str_replace( '/amp/', '&', $post_text ); 14 $post_text = html_entity_decode( $post_text, ENT_COMPAT, "UTF-8" ); 15 16 return $post_text; 17 } 18 add_filter( 'pre_post', 'for_buddypress_pre_post',10,3); 19 11 20 function for_buddypress_strip_tags( $_post, $post ) { 12 21 13 22 // Cast to an array