Skip to content

Commit 822ae63

Browse files
committed
Don't LIMIT updates to 1. Props hailin. fixes WordPress#7272
git-svn-id: https://develop.svn.wordpress.org/trunk@8311 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6070140 commit 822ae63

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wp-includes/wp-db.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,8 @@ function update($table, $data, $where){
685685
$wheres[] = "$c = '" . $this->escape( $v ) . "'";
686686
else
687687
return false;
688-
return $this->query( "UPDATE $table SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres ) . ' LIMIT 1' );
688+
689+
return $this->query( "UPDATE $table SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres ) );
689690
}
690691

691692
/**

0 commit comments

Comments
 (0)