Skip to content

Commit

Permalink
Fix an issue where the admin bar would lose the current screen context
Browse files Browse the repository at this point in the history
  • Loading branch information
tynanbe committed Dec 14, 2023
1 parent 5f9ad3b commit 05af704
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/esi.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 05af704

Please sign in to comment.