WordPress.org

Make WordPress Core

Ticket #17608: 17608.diff

File 17608.diff, 1.2 KB (added by joshuagoodwin, 7 years ago)
  • wp-includes/formatting.php

     
    18311831 * Generates an excerpt from the content, if needed.
    18321832 *
    18331833 * The excerpt word amount will be 55 words and if the amount is greater than
    1834  * that, then the string ' [...]' will be appended to the excerpt. If the string
     1834 * that, then the string ' […]' will be appended to the excerpt. If the string
    18351835 * is less than 55 words, then the content will be returned as is.
    18361836 *
    18371837 * The 55 word limit can be modified by plugins/themes using the excerpt_length filter
    1838  * The ' [...]' string can be modified by plugins/themes using the excerpt_more filter
     1838 * The ' […]' string can be modified by plugins/themes using the excerpt_more filter
    18391839 *
    18401840 * @since 1.5.0
    18411841 *
     
    18531853                $text = str_replace(']]>', ']]>', $text);
    18541854                $text = strip_tags($text);
    18551855                $excerpt_length = apply_filters('excerpt_length', 55);
    1856                 $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
     1856                $excerpt_more = apply_filters('excerpt_more', ' ' . '[…]');
    18571857                $words = preg_split("/[\n\r\t ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY);
    18581858                if ( count($words) > $excerpt_length ) {
    18591859                        array_pop($words);