mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Defense in depth for comment text.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a18f529d6e
commit
ea7ca70470
@ -36,7 +36,7 @@ foreach ( array( 'pre_term_description', 'pre_link_description', 'pre_link_notes
|
||||
|
||||
// Kses only for textarea admin displays
|
||||
if ( is_admin() ) {
|
||||
foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description' ) as $filter ) {
|
||||
foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) {
|
||||
add_filter( $filter, 'wp_kses_data' );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user