Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 15 years ago

#1697 closed defect (bug) (fixed)

kses needs to strip and add slashes to posts

Reported by: donncha's profile donncha Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: blocker Version: 1.6
Component: Administration Keywords:
Focuses: Cc:


kses needs to strip and add slashes to posts:

function wp_filter_post_kses($data) {
        global $allowedposttags;
        return addslashes( wp_kses(stripslashes( $data ), $allowedposttags) );

Change History (2)

#1 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2902]) stripslashes before running kses. Props donncha. fixes #1697

#2 @hakre
15 years ago

Comment after the impression of #4723: hmm, if someone could acutally say why?

Note: See TracTickets for help on using tickets.