WordPress.org

Make WordPress Core

Ticket #9640: wp-db.patch

File wp-db.patch, 394 bytes (added by prettyboymp, 9 years ago)

This should take care of the objects

  • wp-db.php

     
    446446        }
    447447
    448448        function _real_escape($string) {
     449                if(is_object($string))
     450                {
     451                        $string = serialize($string);
     452                }
    449453                if ( $this->dbh && $this->real_escape )
    450454                        return mysql_real_escape_string( $string, $this->dbh );
    451455                else