Make WordPress Core


Ignore:
Timestamp:
03/06/2009 01:06:00 AM (16 years ago)
Author:
ryan
Message:

Only list field types that are not strings. see #7171

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r10725 r10726  
    719719        }
    720720        $sql = "INSERT INTO $table (`" . implode( '`,`', $fields ) . "`) VALUES ('" . implode( "','", $formatted_fields ) . "')";
    721         error_log($sql);
    722721        return $this->query( $this->prepare( $sql, $data) );
    723722    }
     
    765764
    766765        $sql = "UPDATE $table SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres );
    767         error_log($sql);
    768766        return $this->query( $this->prepare( $sql, array_merge(array_values($data), array_values($where))) );
    769767    }
Note: See TracChangeset for help on using the changeset viewer.