[wp-trac] [WordPress Trac] #48831: WP Admin Bar doesn't display on wp-login.php page

WordPress Trac noreply at wordpress.org
Thu Jul 1 21:34:31 UTC 2021


#48831: WP Admin Bar doesn't display on wp-login.php page
--------------------------+------------------------------
 Reporter:  henry.wright  |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Toolbar       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Description changed by sabernhardt:

Old 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()`

New 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 the filter

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48831#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list