From 05af7042446b3fdae14029dff075d7c314dbe97b Mon Sep 17 00:00:00 2001 From: tynanbe Date: Wed, 13 Dec 2023 22:22:15 -0600 Subject: [PATCH] Fix an issue where the admin bar would lose the current screen context --- src/esi.cls.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/esi.cls.php b/src/esi.cls.php index 55333dba2..25e724acb 100644 --- a/src/esi.cls.php +++ b/src/esi.cls.php @@ -825,6 +825,8 @@ public function load_admin_bar_block($params) } } } + // Needed when permalink structure is "Plain" + wp(); wp_admin_bar_render(); if (!$this->conf(Base::O_ESI_CACHE_ADMBAR)) {