[wp-trac] [WordPress Trac] #34418: The Toolbar isn't displayed on wp-signup.php when you're logged-in.
WordPress Trac
noreply at wordpress.org
Wed Oct 28 20:29:21 UTC 2015
#34418: The Toolbar isn't displayed on wp-signup.php when you're logged-in.
----------------------------------------------+---------------------------
Reporter: DrewAPicture | Owner: DrewAPicture
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Login and Registration | Version:
Severity: normal | Resolution: fixed
Keywords: has-screenshots has-patch commit | Focuses:
----------------------------------------------+---------------------------
Changes (by DrewAPicture):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"35423"]:
{{{
#!CommitTicketReference repository="" revision="35423"
Multisite: Restore displaying the Toolbar on wp-signup.php while logged-
in.
Prior to [23512], the Toolbar was still displayed on wp-signup.php while
logged-in because it was hooked to the `init` action. When
`_wp_admin_bar_init()` was moved to instead fire on `template_redirect`
for the front-end and `admin_init` on the back-end, the visibility was
lost because `template_redirect` isn't fired on wp-signup.php due to
`WP_USE_THEMES` not being defined.
In order to maintain expected display results, a default filter has been
added to hook `_wp_admin_bar_init()` to the `before_signup_header` action.
This approach has the added benefit of allowing `_wp_admin_bar_init()` to
be fired prior to the `wp_head` action where `_admin_bar_bump_cb()` is
called (or the callback defined when 'admin-bar' theme support is added).
Fixes #34418.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34418#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list