Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/10/2014 06:09:14 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Update to newer slashing functions, as our minimum requirement is WordPress 3.6.

Also add filters to topic-title & topic-tags form fields. See #2719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/formatting.php

    r5553 r5559  
    8383 */
    8484function bbp_filter_kses( $data = '' ) {
    85     return addslashes( wp_kses( stripslashes( $data ), bbp_kses_allowed_tags() ) );
     85    return wp_slash( wp_kses( wp_unslash( $data ), bbp_kses_allowed_tags() ) );
    8686}
    8787
Note: See TracChangeset for help on using the changeset viewer.