Make WordPress Core


Ignore:
Timestamp:
03/12/2019 10:49:27 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Comments: Improve comment content filtering.

Merges [44842] to the 3.9 branch.

Location:
branches/3.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/src/wp-admin/includes/ajax-actions.php

    r44072 r44855  
    802802                kses_remove_filters(); // start with a clean slate
    803803                kses_init_filters(); // set up the filters
     804                remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
     805                add_filter( 'pre_comment_content', 'wp_filter_kses' );
    804806            }
    805807        }
Note: See TracChangeset for help on using the changeset viewer.