From b64076e6e843618cb21ce7665ce87f32b1a1771a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ca=C5=82ka?= <25438601+rafaucau@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:17:52 +0100 Subject: [PATCH] fix(multisite): reset Database instance on blog switch --- src/Orm/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orm/Database.php b/src/Orm/Database.php index b49e117..0e04af7 100644 --- a/src/Orm/Database.php +++ b/src/Orm/Database.php @@ -81,7 +81,7 @@ public function __construct() // Add hook to update prefix when switching between blogs in multisite add_action('switch_blog', function () { - $this->setTablePrefix($this->db->prefix); + self::$instance = null; }); }