WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/08/2013 09:27:31 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r24129 r24207  
    21622162 *
    21632163 * The excerpt word amount will be 55 words and if the amount is greater than
    2164  * that, then the string ' [...]' will be appended to the excerpt. If the string
     2164 * that, then the string ' […]' will be appended to the excerpt. If the string
    21652165 * is less than 55 words, then the content will be returned as is.
    21662166 *
    21672167 * The 55 word limit can be modified by plugins/themes using the excerpt_length filter
    2168  * The ' [...]' string can be modified by plugins/themes using the excerpt_more filter
     2168 * The ' […]' string can be modified by plugins/themes using the excerpt_more filter
    21692169 *
    21702170 * @since 1.5.0
     
    21832183        $text = str_replace(']]>', ']]>', $text);
    21842184        $excerpt_length = apply_filters('excerpt_length', 55);
    2185         $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
     2185        $excerpt_more = apply_filters('excerpt_more', ' ' . '[…]');
    21862186        $text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
    21872187    }
Note: See TracChangeset for help on using the changeset viewer.