WordPress.org

Make WordPress Core

Ticket #16489: 3.1.diff

File 3.1.diff, 644 bytes (added by nacin, 3 years ago)

For 3.1 final.

  • wp-includes/default-filters.php

     
    3636 
    3737// Kses only for textarea admin displays 
    3838if ( is_admin() ) { 
    39         foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) { 
     39        foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description' ) as $filter ) { 
    4040                add_filter( $filter, 'wp_kses_data' ); 
    4141        } 
     42        add_filter( 'comment_text', 'wp_kses_post' ); 
    4243} 
    4344 
    4445// Email saves