mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
stripslashes before running kses. Props donncha. fixes #1697
git-svn-id: http://svn.automattic.com/wordpress/trunk@2902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d8ea1c7db4
commit
18c673c275
@ -512,7 +512,7 @@ function wp_filter_kses($data) {
|
||||
|
||||
function wp_filter_post_kses($data) {
|
||||
global $allowedposttags;
|
||||
return wp_kses($data, $allowedposttags);
|
||||
return addslashes ( wp_kses(stripslashes( $data ), $allowedposttags) );
|
||||
}
|
||||
|
||||
function kses_init() {
|
||||
|
Loading…
Reference in New Issue
Block a user