Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/24/2016 12:48:57 PM (9 years ago)
Author:
djpaul
Message:

Forums: fix use of deprecated SQL escaping function in legacy forums integration code.

Fixes #6157

Props spenser4551

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-forums/bp-forums-bbpress-sa.php

    r10821 r10957  
    311311         * @since 1.1.0
    312312         *
    313          * @see WPDB::escape_deep() for description of parameters and
    314          *      return values.
    315          *
    316313         * @param mixed $data See {@link WPDB::escape_deep()}.
    317314         * @return mixed $data See {@link WPDB::escape_deep()}.
    318315         */
    319316        function escape_deep( $data ) {
    320             return $this->escape( $data );
     317            return esc_sql( $data );
    321318        }
    322319    }
Note: See TracChangeset for help on using the changeset viewer.