From 258e64c812f5b545d6e746d3ebf0ef9436ea8a0e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 21 Sep 2005 16:35:35 +0000 Subject: [PATCH] stripslashes before running kses. Props donncha. fixes #1697 git-svn-id: https://develop.svn.wordpress.org/trunk@2902 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/kses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/kses.php b/wp-includes/kses.php index f1cf941796..ecb0376132 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -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() {