Don't LIMIT updates to 1. Props hailin. fixes #7272

git-svn-id: http://svn.automattic.com/wordpress/trunk@8311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-07-11 01:49:06 +00:00
parent f9f960b1d0
commit 72295536c2
1 changed files with 2 additions and 1 deletions

View File

@ -685,7 +685,8 @@ class wpdb {
$wheres[] = "$c = '" . $this->escape( $v ) . "'"; $wheres[] = "$c = '" . $this->escape( $v ) . "'";
else else
return false; return false;
return $this->query( "UPDATE $table SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres ) . ' LIMIT 1' );
return $this->query( "UPDATE $table SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres ) );
} }
/** /**