From bb0e22f4ea7ea8a41a777f49d1aab22a5d86e8f9 Mon Sep 17 00:00:00 2001 From: Jan Jakes Date: Tue, 4 Mar 2025 16:05:03 +0100 Subject: [PATCH] Fix undefined method call --- wp-includes/sqlite/class-wp-sqlite-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/sqlite/class-wp-sqlite-db.php b/wp-includes/sqlite/class-wp-sqlite-db.php index a958625..77ec5ec 100644 --- a/wp-includes/sqlite/class-wp-sqlite-db.php +++ b/wp-includes/sqlite/class-wp-sqlite-db.php @@ -341,7 +341,7 @@ public function query( $query ) { if ( $this->dbh instanceof WP_SQLite_Driver ) { $this->rows_affected = $this->dbh->get_last_return_value(); } else { - $this->rows_affected = $this->dbh->get_rows_affected(); + $this->rows_affected = $this->dbh->get_affected_rows(); } // Take note of the insert_id.