You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I enable ESI mode, the admin bar is showing twice.
This happens because in the file wp-content/plugins/litespeed-cache/src/esi.cls.php on line 362, the wp_admin_bar_render function is removed from wp_footer.
However, since WordPress 5.4, the wp_admin_bar_render function is attached to the action wp_body_open. If this function is not utilized by the active theme, the admin bar will be still attached to wp_footer.
I would suggest to remove the action wp_admin_bar_render first from the wp_body_open action. If that fails, remove it from wp_footer for backwards compatibility.
The text was updated successfully, but these errors were encountered:
Hello,
When I enable ESI mode, the admin bar is showing twice.
This happens because in the file
wp-content/plugins/litespeed-cache/src/esi.cls.php
on line 362, the wp_admin_bar_render function is removed from wp_footer.However, since WordPress 5.4, the
wp_admin_bar_render
function is attached to the actionwp_body_open
. If this function is not utilized by the active theme, the admin bar will be still attached towp_footer
.I would suggest to remove the action wp_admin_bar_render first from the wp_body_open action. If that fails, remove it from wp_footer for backwards compatibility.
The text was updated successfully, but these errors were encountered: