WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/default-filters.php

    r15378 r17406  
    3232}
    3333
    34 // Kses only for textarea saves displays
    35 foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description' ) as $filter ) {
     34// Kses only for textarea admin displays
     35foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) {
    3636    add_filter( $filter, 'wp_kses_data' );
    3737}
     
    7373foreach ( array( 'pre_post_type' ) as $filter ) {
    7474    add_filter( $filter, 'sanitize_user' );
     75}
     76foreach ( array( 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
     77    add_filter( $filter, 'sanitize_key' );
    7578}
    7679
Note: See TracChangeset for help on using the changeset viewer.