mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 20:58:55 +00:00
* 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. git-svn-id: https://develop.svn.wordpress.org/trunk@24214 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+2
-2
@@ -87,8 +87,8 @@ if ( !empty($tb_url) && !empty($title) ) {
|
||||
if ( !pings_open($tb_id) )
|
||||
trackback_response(1, 'Sorry, trackbacks are closed for this item.');
|
||||
|
||||
$title = wp_html_excerpt( $title, 250 ) . '…';
|
||||
$excerpt = wp_html_excerpt( $excerpt, 252 ) . '…';
|
||||
$title = wp_html_excerpt( $title, 250, '…' );
|
||||
$excerpt = wp_html_excerpt( $excerpt, 252, '…' );
|
||||
|
||||
$comment_post_ID = (int) $tb_id;
|
||||
$comment_author = $blog_name;
|
||||
|
||||
Reference in New Issue
Block a user