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-includes/comment.php

    r24207 r24214  
    17541754        $excerpt = apply_filters('the_excerpt', $post->post_excerpt);
    17551755    $excerpt = str_replace(']]>', ']]>', $excerpt);
    1756     $excerpt = wp_html_excerpt($excerpt, 252) . '…';
     1756    $excerpt = wp_html_excerpt($excerpt, 252, '…');
    17571757
    17581758    $post_title = apply_filters('the_title', $post->post_title, $post->ID);
Note: See TracChangeset for help on using the changeset viewer.