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:
parent
e17afbcfa8
commit
258e64c812
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user