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

git-svn-id: https://develop.svn.wordpress.org/trunk@8311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-07-11 01:49:06 +00:00
parent 60701401b3
commit 822ae638e1

View File

@ -685,7 +685,8 @@ class wpdb {
$wheres[] = "$c = '" . $this->escape( $v ) . "'";
else
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 ) );
}
/**