Opened 14 months ago
Last modified 14 months ago
#48831 new enhancement
WP Admin Bar doesn't display on wp-login.php page
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Toolbar | Keywords: | has-patch |
Focuses: | Cc: |
Description
I like to display the WP Admin Bar on all pages even if a user isn't authenticated because we get the WordPress logo and menu and a search button. To always show the WP Admin Bar we can do this:
add_filter( 'show_admin_bar', '__return_true' );
This will display it everywhere except wp-login.php. I think it _should_ display on this page if we return true in show_admin_bar()
Attachments (2)
Change History (10)
#3
@
14 months ago
This is because wp-login.php uses a different set of hooks. login_header
and login_footer
are used instead of wp_head
and wp_footer
#5
@
14 months ago
Hello @henrywright,
I attached a patch, https://core.trac.wordpress.org/attachment/ticket/48831/48831.2.diff, that should address this ticket.
P.S. - I changed this ticket from bug
to enhancement
as I feel that this is more of an enhancement.
#7
@
14 months ago
I like to display the WP Admin Bar on all pages even if a user isn't authenticated because we get the WordPress logo and menu and a search button.
Just noting there's a Logged Out Admin Bar plugin used on WordPress.org for that purpose, though it doesn't display the toolbar on the login page either.
I can't edit the ticket description but I should have said: