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/replies/template.php

    r5558 r5559  
    25532553        // Get _POST data
    25542554        if ( bbp_is_reply_form_post_request() && isset( $_POST['bbp_reply_content'] ) ) {
    2555             $reply_content = stripslashes( $_POST['bbp_reply_content'] );
     2555            $reply_content = wp_unslash( $_POST['bbp_reply_content'] );
    25562556
    25572557        // Get edit data
     
    27482748        // Get _POST data
    27492749        if ( bbp_is_reply_form_post_request() && isset( $_POST['bbp_reply_edit_reason'] ) ) {
    2750             $reply_edit_reason = stripslashes( $_POST['bbp_reply_edit_reason'] );
     2750            $reply_edit_reason = wp_unslash( $_POST['bbp_reply_edit_reason'] );
    27512751
    27522752        // No data
Note: See TracChangeset for help on using the changeset viewer.