mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-29 15:44:27 +00:00
Admin bar styles, take 1. Props iammmattthomas, see #18197.
git-svn-id: https://develop.svn.wordpress.org/trunk@18695 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -163,10 +163,6 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
|
||||
// if ( count( $wp_admin_bar->user->blogs ) <= 1 )
|
||||
// return;
|
||||
|
||||
$grey_wp_logo_url = admin_url( 'images/wp-logo.png' );
|
||||
|
||||
$grey_wp_logo = '<img src="' . esc_url( $grey_wp_logo_url ) . '" alt="' . esc_attr__( 'Blavatar' ) . '" width="16" height="16" class="blavatar"/>';
|
||||
|
||||
if ( is_multisite() )
|
||||
$url = admin_url( 'my-sites.php' );
|
||||
else
|
||||
@@ -174,8 +170,11 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
|
||||
|
||||
$wp_admin_bar->add_menu( array(
|
||||
'id' => 'my-blogs',
|
||||
'title' => $grey_wp_logo,
|
||||
'title' => ' ',
|
||||
'href' => $url,
|
||||
'meta' => array(
|
||||
'class' => 'wp-admin-bar-logo',
|
||||
),
|
||||
) );
|
||||
|
||||
// Add network admin link
|
||||
|
||||
Reference in New Issue
Block a user