Use ellipsis instead of three dots. props tjsingleton, jordie23, wojtek.szkutnik, DrewAPicture, SergeyBiryukov. see #8714.

git-svn-id: https://develop.svn.wordpress.org/trunk@24207 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2013-05-08 21:27:31 +00:00
parent cf2a8e08d2
commit bb2a27be5b
16 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -5422,7 +5422,7 @@ class wp_xmlrpc_server extends IXR_Server {
// prevent really long link text
if ( strlen($context[1]) > 100 )
$context[1] = substr($context[1], 0, 100) . '...';
$context[1] = substr($context[1], 0, 100) . '…';
$marker = '<wpcontext>'.$context[1].'</wpcontext>'; // set up our marker
$excerpt= str_replace($context[0], $marker, $excerpt); // swap out the link for our marker
@@ -5440,7 +5440,7 @@ class wp_xmlrpc_server extends IXR_Server {
$pagelinkedfrom = str_replace('&', '&amp;', $pagelinkedfrom);
$context = '[...] ' . esc_html( $excerpt ) . ' [...]';
$context = '[&#8230;] ' . esc_html( $excerpt ) . ' [&#8230;]';
$pagelinkedfrom = $wpdb->escape( $pagelinkedfrom );
$comment_post_ID = (int) $post_ID;
+3 -3
View File
@@ -393,8 +393,8 @@ function comment_date( $d = '', $comment_ID = 0 ) {
/**
* Retrieve the excerpt of the current comment.
*
* Will cut each word and only output the first 20 words with '...' at the end.
* If the word count is less than 20, then no truncating is done and no '...'
* Will cut each word and only output the first 20 words with '&hellip;' at the end.
* If the word count is less than 20, then no truncating is done and no '&hellip;'
* will appear.
*
* @since 1.5.0
@@ -419,7 +419,7 @@ function get_comment_excerpt( $comment_ID = 0 ) {
for ($i=0; $i<$k; $i++) {
$excerpt .= $blah[$i] . ' ';
}
$excerpt .= ($use_dotdotdot) ? '...' : '';
$excerpt .= ($use_dotdotdot) ? '&hellip;' : '';
return apply_filters('get_comment_excerpt', $excerpt);
}
+1 -1
View File
@@ -1753,7 +1753,7 @@ function do_trackbacks($post_id) {
else
$excerpt = apply_filters('the_excerpt', $post->post_excerpt);
$excerpt = str_replace(']]>', ']]&gt;', $excerpt);
$excerpt = wp_html_excerpt($excerpt, 252) . '...';
$excerpt = wp_html_excerpt($excerpt, 252) . '&#8230;';
$post_title = apply_filters('the_title', $post->post_title, $post->ID);
$post_title = strip_tags($post_title);
+3 -3
View File
@@ -2161,11 +2161,11 @@ function human_time_diff( $from, $to = '' ) {
* Generates an excerpt from the content, if needed.
*
* The excerpt word amount will be 55 words and if the amount is greater than
* that, then the string ' [...]' will be appended to the excerpt. If the string
* that, then the string ' [&hellip;]' will be appended to the excerpt. If the string
* is less than 55 words, then the content will be returned as is.
*
* The 55 word limit can be modified by plugins/themes using the excerpt_length filter
* The ' [...]' string can be modified by plugins/themes using the excerpt_more filter
* The ' [&hellip;]' string can be modified by plugins/themes using the excerpt_more filter
*
* @since 1.5.0
*
@@ -2182,7 +2182,7 @@ function wp_trim_excerpt($text = '') {
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]&gt;', $text);
$excerpt_length = apply_filters('excerpt_length', 55);
$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
$excerpt_more = apply_filters('excerpt_more', ' ' . '[&hellip;]');
$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
}
return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
+1 -1
View File
@@ -877,7 +877,7 @@ function get_the_remaining_content( $more_link_text = null, $strip_teaser = fals
$post = get_post();
if ( null === $more_link_text )
$more_link_text = __( '(more...)' );
$more_link_text = __( '(more&hellip;)' );
$output = '';
$has_teaser = false;
+1 -1
View File
@@ -181,7 +181,7 @@ function get_the_content( $more_link_text = null, $strip_teaser = false ) {
$post = get_post();
if ( null === $more_link_text )
$more_link_text = __( '(more...)' );
$more_link_text = __( '(more&hellip;)' );
$output = '';
$has_teaser = false;
+1 -1
View File
@@ -3339,7 +3339,7 @@ function trackback_url_list($tb_list, $post_id) {
$excerpt = strip_tags($post_excerpt ? $post_excerpt : $post_content);
if (strlen($excerpt) > 255) {
$excerpt = substr($excerpt,0,252) . '...';
$excerpt = substr($excerpt,0,252) . '&hellip;';
}
$trackback_urls = explode(',', $tb_list);