WordPress.org

Make WordPress Core

Ticket #15654: 15654.diff

File 15654.diff, 1.8 KB (added by koopersmith, 5 years ago)
  • wp-includes/admin-bar.php

     
    114114                //$blavatar = '<img src="' . esc_url( blavatar_url( blavatar_domain( $blog->siteurl ), 'img', 16, $default ) ) . '" alt="Blavatar" width="16" height="16" />'; 
    115115                $blavatar = '<img src="' . esc_url($default) . '" alt="' . esc_attr__( 'Blavatar' ) . '" width="16" height="16" class="blavatar"/>'; 
    116116 
    117                 $full_blogname = $blogname = empty( $blog->blogname ) ? $blog->domain : $blog->blogname; 
    118                 if ( strlen( $blogname ) > 15 ) 
    119                         $blogname = substr( $blogname, 0, 15 ) . '&hellip;'; 
    120                 else 
    121                         $full_blogname = ''; 
     117                $blogname = empty( $blog->blogname ) ? $blog->domain : $blog->blogname; 
    122118 
    123                 $wp_admin_bar->add_menu( array( 'parent' => 'my-blogs', 'id' => 'blog-' . $blog->userblog_id, 'title' => $blavatar . $blogname,  'href' => get_admin_url($blog->userblog_id), 'meta' => array( 'title' => $full_blogname ) ) ); 
     119                $wp_admin_bar->add_menu( array( 'parent' => 'my-blogs', 'id' => 'blog-' . $blog->userblog_id, 'title' => $blavatar . $blogname,  'href' => get_admin_url($blog->userblog_id) ) ); 
    124120                $wp_admin_bar->add_menu( array( 'parent' => 'blog-' . $blog->userblog_id, 'id' => 'blog-' . $blog->userblog_id . '-d', 'title' => __( 'Dashboard' ), 'href' => get_admin_url($blog->userblog_id) ) ); 
    125121 
    126122                if ( current_user_can_for_blog( $blog->userblog_id, 'edit_posts' ) ) { 
  • wp-includes/css/admin-bar.dev.css

     
    114114        text-shadow: none; 
    115115        white-space: nowrap; 
    116116        overflow: hidden; 
    117         width: 160px; 
     117        min-width: 140px; 
    118118} 
    119119 
    120120#wpadminbar .shortlink-input {