stripslashes before running kses. Props donncha. fixes #1697

git-svn-id: https://develop.svn.wordpress.org/trunk@2902 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-09-21 16:35:35 +00:00
parent e17afbcfa8
commit 258e64c812

View File

@ -512,7 +512,7 @@ function wp_filter_kses($data) {
function wp_filter_post_kses($data) { function wp_filter_post_kses($data) {
global $allowedposttags; global $allowedposttags;
return wp_kses($data, $allowedposttags); return addslashes ( wp_kses(stripslashes( $data ), $allowedposttags) );
} }
function kses_init() { function kses_init() {