mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Pass link indentifier to mymysql_affected_rows(). Props Doug Kaye.
git-svn-id: https://develop.svn.wordpress.org/trunk@5195 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -192,7 +192,7 @@ class wpdb {
|
||||
}
|
||||
|
||||
if ( preg_match("/^\\s*(insert|delete|update|replace) /i",$query) ) {
|
||||
$this->rows_affected = mysql_affected_rows();
|
||||
$this->rows_affected = mysql_affected_rows($this->dbh);
|
||||
// Take note of the insert_id
|
||||
if ( preg_match("/^\\s*(insert|replace) /i",$query) ) {
|
||||
$this->insert_id = mysql_insert_id($this->dbh);
|
||||
|
||||
Reference in New Issue
Block a user