WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 5 years ago

#1697 closed defect (bug) (fixed)

kses needs to strip and add slashes to posts

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

Description

kses needs to strip and add slashes to posts:
ie:

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

Change History (2)

comment:1 ryan9 years ago

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

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

comment:2 hakre5 years ago

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

Note: See TracTickets for help on using tickets.