[wp-trac] [WordPress Trac] #31755: Notice in admin-bar.php since revision 31448

WordPress Trac noreply at wordpress.org
Thu Apr 2 05:26:24 UTC 2015


#31755: Notice in admin-bar.php since revision 31448
--------------------------------+-------------------------
 Reporter:  deconf              |       Owner:  jeremyfelt
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  4.2
Component:  Networks and Sites  |     Version:  trunk
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31981"]:
 {{{
 #!CommitTicketReference repository="" revision="31981"
 Check for an active blog before generating the `my-sites.php` URL.

 If a super admin does not have an active blog assigned to their account,
 `$wp_admin_bar->user->active_blog` will be set as `null`. We can then fall
 back to `admin_url()` to generate the My Sites URL.

 Props SergeyBiryukov, deconf.

 Fixes #31755.
 }}}

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


More information about the wp-trac mailing list