Ticket #10376: 10376.2.diff
| File 10376.2.diff, 613 bytes (added by Denis-de-Bernardy, 3 years ago) |
|---|
-
wp-includes/formatting.php
1816 1816 $text = strip_tags($text); 1817 1817 $excerpt_length = apply_filters('excerpt_length', 55); 1818 1818 $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]'); 1819 $words = explode(' ', $text, $excerpt_length + 1);1819 $words = preg_split("/[\n\r\t ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY); 1820 1820 if (count($words) > $excerpt_length) { 1821 1821 array_pop($words); 1822 1822 $text = implode(' ', $words);
