mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
Defense in depth for comment text. For 3.0
git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@17400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0ee19cf7af
commit
6f31fa6e29
@ -31,8 +31,8 @@ foreach ( array( 'pre_term_description', 'pre_link_description', 'pre_link_notes
|
||||
add_filter( $filter, 'wp_filter_kses' );
|
||||
}
|
||||
|
||||
// Kses only for textarea saves displays
|
||||
foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description' ) as $filter ) {
|
||||
// Kses only for textarea admin displays
|
||||
foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) {
|
||||
add_filter( $filter, 'wp_kses_data' );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user