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

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 ) );
}
/**