Make WordPress Core

Ticket #11605: 11605.2.patch

File 11605.2.patch, 581 bytes (added by hakre, 14 years ago)
  • wp-includes/wp-db.php

     
    506506        function escape($data) {
    507507                if ( is_array($data) ) {
    508508                        foreach ( (array) $data as $k => $v ) {
    509                                 if ( is_array($v) )
    510                                         $data[$k] = $this->escape( $v );
    511                                 else
    512                                         $data[$k] = $this->_weak_escape( $v );
     509                                $data[$k] = $this->escape( $v );
    513510                        }
    514511                } else {
    515                         $data = $this->_weak_escape( $data );
     512                        $data = addslashes( $data );
    516513                }
    517514
    518515                return $data;