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 authored and Hai Zheng committed Dec 18, 2023
1 parent 85d911f commit a5019f5
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 a5019f5

Please sign in to comment.