WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/14/2011 02:25:24 AM (9 years ago)
Author:
westi
Message:

Switch to using min-width so long titles can be displayed instead of using elipsis. Fixes #15654 props koopersmith.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r17269 r17295  
    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 = '';
    122 
    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 ) ) );
     117        $blogname = empty( $blog->blogname ) ? $blog->domain : $blog->blogname;
     118
     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
Note: See TracChangeset for help on using the changeset viewer.