WordPress.org

Make WordPress Core

Changeset 44845


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

Comments: Improve comment content filtering.

Merges [44842] to the 4.9 branch.

Location:
branches/4.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

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

    r44106 r44845  
    10711071                kses_remove_filters(); // start with a clean slate
    10721072                kses_init_filters(); // set up the filters
     1073                remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
     1074                add_filter( 'pre_comment_content', 'wp_filter_kses' );
    10731075            }
    10741076        }
  • branches/4.9/src/wp-includes/comment.php

    r43707 r44845  
    31113111                kses_remove_filters(); // start with a clean slate
    31123112                kses_init_filters(); // set up the filters
     3113                remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
     3114                add_filter( 'pre_comment_content', 'wp_filter_kses' );
    31133115            }
    31143116        }
Note: See TracChangeset for help on using the changeset viewer.