[wp-trac] [WordPress Trac] #31586: Admin Bar: site-name link for is_admin() in admin-bar.php

WordPress Trac noreply at wordpress.org
Tue Mar 10 21:16:18 UTC 2015


#31586: Admin Bar: site-name link for is_admin() in admin-bar.php
-------------------------+-----------------------------
 Reporter:  landwire     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Toolbar      |    Version:  4.1.1
 Severity:  normal       |   Keywords:
  Focuses:  ui           |
-------------------------+-----------------------------
 Hi there,

 at the moment the site-name link in the admin bar point to the
 admin_url(). Would it be possible to put a filter in to override that? As
 the first item in the dropdown menu is the dashboard and links exactly to
 the same place!
 I am quite happy to link to the home_url for all users, also admins.
 Somehow it feels consistent, as I also use the adminbar on the frontend.
 Anyway, just a thought.

 This is the code as is in admin-bar.php, just so you know what I am
 talking about:


 {{{
 $wp_admin_bar->add_menu( array(
                 'id'    => 'site-name',
                 'title' => $title,
                 'href'  => is_admin() ? home_url( '/' ) : admin_url(),
         ) );
 }}}


 Thanks,
 Sascha

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


More information about the wp-trac mailing list