Ticket #6380: 6380.2.diff
| File 6380.2.diff, 884 bytes (added by DD32, 5 years ago) |
|---|
-
wp-includes/formatting.php
828 828 829 829 function wp_trim_excerpt($text) { // Fakes an excerpt if needed 830 830 if ( '' == $text ) { 831 $text = get_the_content(''); 832 $text = apply_filters('the_content', $text); 833 $text = str_replace(']]>', ']]>', $text); 834 $text = strip_tags($text); 831 $text = get_the_content(); 835 832 $excerpt_length = 55; 836 833 $words = explode(' ', $text, $excerpt_length + 1); 837 834 if (count($words) > $excerpt_length) { … … 839 836 array_push($words, '[...]'); 840 837 $text = implode(' ', $words); 841 838 } 839 $text = apply_filters('the_content', $text); 840 $text = str_replace(']]>', ']]>', $text); 841 $text = balancetags($text); //strip_tags($text); 842 842 } 843 843 return $text; 844 844 }
