remove_slashes was broken.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77fa432bae
commit
9e9589e6f9
|
@ -1296,10 +1296,6 @@ function rewrite_rules($matches = '', $permalink_structure = '') {
|
|||
return $rewrite;
|
||||
}
|
||||
|
||||
function remove_slashes($string) {
|
||||
return stripslashes(stripslashes($string));
|
||||
}
|
||||
|
||||
function get_posts($args) {
|
||||
global $wpdb, $tableposts;
|
||||
parse_str($args, $r);
|
||||
|
|
|
@ -1,23 +1,19 @@
|
|||
<?php
|
||||
|
||||
// Default filters for these functions
|
||||
add_filter('comment_author', 'remove_slashes', 5);
|
||||
add_filter('comment_author', 'wptexturize');
|
||||
add_filter('comment_author', 'convert_chars');
|
||||
|
||||
add_filter('comment_email', 'remove_slashes', 5);
|
||||
add_filter('comment_email', 'antispambot');
|
||||
|
||||
add_filter('comment_url', 'clean_url');
|
||||
|
||||
add_filter('comment_text', 'remove_slashes', 5);
|
||||
add_filter('comment_text', 'convert_chars');
|
||||
add_filter('comment_text', 'make_clickable');
|
||||
add_filter('comment_text', 'wpautop', 30);
|
||||
add_filter('comment_text', 'balanceTags');
|
||||
add_filter('comment_text', 'convert_smilies', 20);
|
||||
|
||||
add_filter('comment_excerpt', 'remove_slashes', 5);
|
||||
add_filter('comment_excerpt', 'convert_chars');
|
||||
|
||||
function clean_url($url) {
|
||||
|
|
|
@ -10,7 +10,6 @@ add_filter('the_content', 'convert_smilies');
|
|||
add_filter('the_content', 'convert_chars');
|
||||
add_filter('the_content', 'wpautop');
|
||||
|
||||
add_filter('the_excerpt', 'remove_slashes', 5);
|
||||
add_filter('the_excerpt', 'convert_smilies');
|
||||
add_filter('the_excerpt', 'convert_chars');
|
||||
add_filter('the_excerpt', 'wpautop');
|
||||
|
|
Loading…
Reference in New Issue