Ticket #15308: 15308.blogname.patch
File 15308.blogname.patch, 1.3 KB (added by , 14 years ago) |
---|
-
wp-includes/admin-bar.php
114 114 //$blavatar = '<img src="' . esc_url( blavatar_url( blavatar_domain( $blog->siteurl ), 'img', 16, $default ) ) . '" alt="Blavatar" width="16" height="16" />'; 115 115 $blavatar = '<img src="' . esc_url($default) . '" alt="' . esc_attr__( 'Blavatar' ) . '" width="16" height="16" class="blavatar"/>'; 116 116 117 $ marker = '';118 if ( strlen( $blog->blogname) > 18)119 $ marker = '...';117 $blogname = empty( $blog->blogname ) ? $blog->domain : $blog->blogname; 118 if ( strlen( $blogname ) > 15 ) 119 $blogname = substr( $blogname, 0, 15 ) . '…'; 120 120 121 if ( empty( $blog->blogname ) )122 $blogname = $blog->domain;123 else124 $blogname = substr( $blog->blogname, 0, 18 ) . $marker;125 126 121 if ( ! isset( $blog->visible ) || $blog->visible === true ) { 127 122 $wp_admin_bar->add_menu( array( 'parent' => 'my-blogs', 'id' => 'blog-' . $blog->userblog_id, 'title' => $blavatar . $blogname, 'href' => get_admin_url($blog->userblog_id), ) ); 128 123 $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), ) );