Make WordPress Core


Ignore:
Timestamp:
03/12/2019 10:29:46 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Comments: Improve comment content filtering.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r44659 r44842  
    32443244                kses_remove_filters(); // start with a clean slate
    32453245                kses_init_filters(); // set up the filters
     3246                remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
     3247                add_filter( 'pre_comment_content', 'wp_filter_kses' );
    32463248            }
    32473249        }
Note: See TracChangeset for help on using the changeset viewer.