Make WordPress Core


Ignore:
Timestamp:
05/09/2013 12:22:02 AM (11 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-trackback.php

    r24207 r24214  
    8888        trackback_response(1, 'Sorry, trackbacks are closed for this item.');
    8989
    90     $title =  wp_html_excerpt( $title, 250 ) . '…';
    91     $excerpt = wp_html_excerpt( $excerpt, 252 ) . '…';
     90    $title =  wp_html_excerpt( $title, 250, '…' );
     91    $excerpt = wp_html_excerpt( $excerpt, 252, '…' );
    9292
    9393    $comment_post_ID = (int) $tb_id;
Note: See TracChangeset for help on using the changeset viewer.