WordPress.org

Make WordPress Core

Changeset 44843


Ignore:
Timestamp:
03/12/2019 10:31:55 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Comments: Improve comment content filtering.

Merges [44842] to the 5.1 branch.

Location:
branches/5.1
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.1

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

    r44537 r44843  
    12151215                kses_remove_filters(); // start with a clean slate
    12161216                kses_init_filters(); // set up the filters
     1217                remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
     1218                add_filter( 'pre_comment_content', 'wp_filter_kses' );
    12171219            }
    12181220        }
  • branches/5.1/src/wp-includes/comment.php

    r44659 r44843  
    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.