Ticket #18888: 18888.diff
File 18888.diff, 525 bytes (added by , 14 years ago) |
---|
-
wp-includes/formatting.php
1882 1882 */ 1883 1883 function wp_trim_words( $text, $num_words = 55, $more = null ) { 1884 1884 if ( null === $more ) 1885 $more = __( '…' );1885 $more = '…'; 1886 1886 $original_text = $text; 1887 1887 $text = wp_strip_all_tags( $text ); 1888 1888 $words_array = preg_split( "/[\n\r\t ]+/", $text, $num_words + 1, PREG_SPLIT_NO_EMPTY );