Make WordPress Core


Ignore:
Timestamp:
05/09/2013 12:22:02 AM (13 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-admin/includes/dashboard.php

    r24212 r24214  
    828828
    829829        $content = $item->get_content();
    830         $content = wp_html_excerpt($content, 50) . ' …';
     830        $content = wp_html_excerpt( $content, 50, ' …' );
    831831
    832832        if ( $link )
Note: See TracChangeset for help on using the changeset viewer.