Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit ca775d2

Browse files
authored
Merge pull request #22 from Automattic/fix-undefined-method-crash
Fix undefined method call
2 parents 2fb5cbb + bb0e22f commit ca775d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wp-includes/sqlite/class-wp-sqlite-db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public function query( $query ) {
341341
if ( $this->dbh instanceof WP_SQLite_Driver ) {
342342
$this->rows_affected = $this->dbh->get_last_return_value();
343343
} else {
344-
$this->rows_affected = $this->dbh->get_rows_affected();
344+
$this->rows_affected = $this->dbh->get_affected_rows();
345345
}
346346

347347
// Take note of the insert_id.

0 commit comments

Comments
 (0)