problem with is_admin_bar_showing() in the frondend
-
Hi there, thanks for your plugin, its exactly what I was looking for. It helps a lot when your pages have the same title with different languages.
I encountered a problem with the call of the function is_admin_bar_showing() in the plugin. In the frontend it result the following error message:
PHP Fatal error: Call to undefined function is_user_logged_in() in /wp-includes/admin-bar.php on line 829, referer: /wp-admin/index.php
I remove the query and there is no more problem. Though in the frontend the flag is overlapped with the original wordpress icon.
Hope that helps to improve the plugin.
Best regards
Valentin
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘problem with is_admin_bar_showing() in the frondend’ is closed to new replies.