Make WordPress Core

Ticket #10376: formatting.php.diff

File formatting.php.diff, 580 bytes (added by sojweb, 16 years ago)
  • trunk/wp-includes/formatting.php

     
    16961696
    16971697                $text = apply_filters('the_content', $text);
    16981698                $text = str_replace(']]>', ']]>', $text);
    1699                 $text = strip_tags($text);
     1699                $text = trim(preg_replace('|\s+|',' ',strip_tags($text)));
    17001700                $excerpt_length = apply_filters('excerpt_length', 55);
    17011701                $words = explode(' ', $text, $excerpt_length + 1);
    17021702                if (count($words) > $excerpt_length) {