WordPress.org

Make WordPress Core

Ticket #16489: 3.0.diff

File 3.0.diff, 718 bytes (added by nacin, 3 years ago)

For the 3.0 branch with a new nightly.

  • wp-includes/default-filters.php

     
    3232} 
    3333 
    3434// Kses only for textarea admin displays 
    35 foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) { 
     35foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description' ) as $filter ) { 
    3636        add_filter( $filter, 'wp_kses_data' ); 
    3737} 
     38if ( is_admin() ) 
     39        add_filter( 'comment_text', 'wp_kses_post' ); 
    3840 
    3941// Email saves 
    4042foreach ( array( 'pre_comment_author_email', 'pre_user_email' ) as $filter ) {