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:
parent
60701401b3
commit
822ae638e1
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user