Ticket #5604: formatting.php.5604.diff
| File formatting.php.5604.diff, 0.8 kB (added by sunburntkamel, 8 months ago) |
|---|
-
wp-includes/formatting.php
old new 816 816 $text = get_the_content(''); 817 817 $text = apply_filters('the_content', $text); 818 818 $text = str_replace(']]>', ']]>', $text); 819 $search = array('@<script[^>]*?>.*?</script>@si', // Strip out javascript 820 '@<style[^>]*?>.*?</style>@siU', // Strip style tags properly 821 '@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags 822 '@<![\s\S]*?--[ \t\n\r]*>@' // Strip multi-line comments including CDATA 823 ); 824 $text = preg_replace($search, '', $text); 819 825 $text = strip_tags($text); 820 826 $excerpt_length = 55; 821 827 $words = explode(' ', $text, $excerpt_length + 1);
