[wp-trac] [WordPress Trac] #62963: Fatal is_admin_bar_showing() - Call to undefined function is_user_logged_in()
WordPress Trac
noreply at wordpress.org
Sun Feb 16 06:00:44 UTC 2025
#62963: Fatal is_admin_bar_showing() - Call to undefined function
is_user_logged_in()
--------------------------+------------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):
* component: Administration => Toolbar
Comment:
`is_admin_bar_showing()` runs the `is_user_logged_in()` condition if
`$show_admin_bar` is not set (after checking whether it is an XML-
RPC/Ajax/iframe/JSON request, an embed, or within the admin).
Could you use `show_admin_bar( false );` somehow?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62963#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list