Make WordPress Core


Ignore:
Timestamp:
03/12/2019 10:34:58 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Comments: Improve comment content filtering.

Merges [44842] to the 4.8 branch.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/src/wp-includes/comment.php

    r40667 r44846  
    30553055                kses_remove_filters(); // start with a clean slate
    30563056                kses_init_filters(); // set up the filters
     3057                remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
     3058                add_filter( 'pre_comment_content', 'wp_filter_kses' );
    30573059            }
    30583060        }
Note: See TracChangeset for help on using the changeset viewer.