Make WordPress Core

Changeset 44842


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

Comments: Improve comment content filtering.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r44809 r44842  
    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        }
  • trunk/src/wp-includes/comment.php

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