WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/12/2019 10:32:54 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Comments: Improve comment content filtering.

Merges [44842] to the 5.0 branch.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

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

    r43819 r44844  
    30993099                kses_remove_filters(); // start with a clean slate
    31003100                kses_init_filters(); // set up the filters
     3101                remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
     3102                add_filter( 'pre_comment_content', 'wp_filter_kses' );
    31013103            }
    31023104        }
Note: See TracChangeset for help on using the changeset viewer.