Make WordPress Core


Ignore:
Timestamp:
05/09/2013 12:22:02 AM (12 years ago)
Author:
SergeyBiryukov
Message:
  • Pass ellipsis as a parameter to wp_html_excerpt() instead of appending it manually.
  • Consolidate the logic to avoid appending ellipsis if the entire string is shown.
  • Show ellipsis after truncated filenames and post titles.

props solarissmoke, bpetty, SergeyBiryukov. fixes #11446.

File:
1 edited

Legend:

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

    r23512 r24214  
    230230    }
    231231
    232     $title = wp_html_excerpt( $blogname, 40 );
    233     if ( $title != $blogname )
    234         $title = trim( $title ) . '…';
     232    $title = wp_html_excerpt( $blogname, 40, '…' );
    235233
    236234    $wp_admin_bar->add_menu( array(
Note: See TracChangeset for help on using the changeset viewer.