Changeset 29664 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 09/02/2014 04:55:17 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r29165 r29664 1794 1794 } 1795 1795 1796 $wheres = empty( $where ) ? '' : ( ' WHERE ' . implode( ' AND ', $wheres ) ); 1797 1798 $sql = "UPDATE `$table` SET " . implode( ', ', $bits ) . $wheres; 1796 $sql = "UPDATE `$table` SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres ); 1799 1797 return $this->query( $this->prepare( $sql, array_merge( array_values( $data ), array_values( $where ) ) ) ); 1800 1798 }
Note: See TracChangeset
for help on using the changeset viewer.