Skip to:
Content

BuddyPress.org

Changeset 5104


Ignore:
Timestamp:
09/05/2011 04:09:06 PM (14 years ago)
Author:
boonebgorges
Message:

Eliminate duplicate code by making BPDB::escape_deep() a wrapper for wpdb::escape(). See #3549. Props wpmuguru

File:
1 edited

Legend:

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

    r4821 r5104  
    198198
    199199    function escape_deep( $data ) {
    200         if ( is_array( $data ) ) {
    201             foreach ( (array) $data as $k => $v ) {
    202                 if ( is_array( $v ) ) {
    203                     $data[$k] = $this->_escape( $v );
    204                 } else {
    205                     $data[$k] = $this->_real_escape( $v );
    206                 }
    207             }
    208         } else {
    209             $data = $this->_real_escape( $data );
    210         }
    211 
    212         return $data;
     200        return $this->escape( $data );
    213201    }
    214202}
Note: See TracChangeset for help on using the changeset viewer.