]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/default-filters.php
Wordpress 3.0.5
[autoinstalls/wordpress.git] / wp-includes / default-filters.php
index d3f5fc0c2e81f2f4275002a37a125d42b8090cc5..3fb31bcfaeff4d612e3777766f27279fb9910a66 100644 (file)
@@ -31,8 +31,8 @@ foreach ( array( 'pre_term_description', 'pre_link_description', 'pre_link_notes
        add_filter( $filter, 'wp_filter_kses' );
 }
 
-// Kses only for textarea saves displays
-foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description' ) as $filter ) {
+// Kses only for textarea admin displays
+foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) {
        add_filter( $filter, 'wp_kses_data' );
 }
 
@@ -73,6 +73,9 @@ foreach ( array( 'pre_term_slug' ) as $filter ) {
 foreach ( array( 'pre_post_type' ) as $filter ) {
        add_filter( $filter, 'sanitize_user' );
 }
+foreach ( array( 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
+       add_filter( $filter, 'sanitize_key' );
+}
 
 // Places to balance tags on input
 foreach ( array( 'content_save_pre', 'excerpt_save_pre', 'comment_save_pre', 'pre_comment_content' ) as $filter ) {
@@ -88,7 +91,7 @@ foreach ( array( 'comment_author', 'term_name', 'link_name', 'link_description',
 
 // Format WordPress
 foreach ( array( 'the_content', 'the_title', 'comment_text' ) as $filter )
-       add_filter( $filter, 'capital_P_dangit' );
+       add_filter( $filter, 'capital_P_dangit', 11 );
 
 // Format titles
 foreach ( array( 'single_post_title', 'single_cat_title', 'single_tag_title', 'single_month_title', 'nav_menu_attr_title', 'nav_menu_description' ) as $filter ) {