WordPress.org

Make WordPress Core

Ticket #18888: 18888.diff

File 18888.diff, 525 bytes (added by Caspie, 3 years ago)

skip translation

  • wp-includes/formatting.php

     
    18821882 */ 
    18831883function wp_trim_words( $text, $num_words = 55, $more = null ) { 
    18841884        if ( null === $more ) 
    1885                 $more = __( '…' ); 
     1885                $more = '…'; 
    18861886        $original_text = $text; 
    18871887        $text = wp_strip_all_tags( $text ); 
    18881888        $words_array = preg_split( "/[\n\r\t ]+/", $text, $num_words + 1, PREG_SPLIT_NO_EMPTY );