[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
Fri Oct 23 20:52:10 UTC 2015


#34418: The Toolbar isn't displayed on wp-signup.php when you're logged-in.
------------------------------------+-----------------------
 Reporter:  DrewAPicture            |      Owner:
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  4.4
Component:  Login and Registration  |    Version:
 Severity:  normal                  |   Keywords:  has-patch
  Focuses:                          |
------------------------------------+-----------------------
 The Toolbar doesn't get initialized and therefore doesn't get rendered on
 wp-signup.php when you're logged in.

 This was actually a pretty cool bug to track down.

 Turns out, the bug was introduced three years ago in [23512] when the
 `_wp_admin_bar_init()` callback was switched from the `init` hook to
 `template_redirect` and `admin_init`, respectively, to allow access to
 conditional tags for the `show_admin_bar` hook.

 The `template_redirect` hook isn't fired on wp-signup.php because
 `WP_USE_THEMES` isn't defined.

 Solution: We can't force `template_redirect` to fire on wp-signup.php
 because it'll actually try to load a template instead, so the best option
 is to hook to `signup_header`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34418>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list