Ticket #64944: br-spacing-fix.diff
| File br-spacing-fix.diff, 460 bytes (added by , 3 months ago) |
|---|
-
src/wp-includes/formatting.php
diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 2b32b5aafb..e59bcbc5fe 100644
a b function wp_trim_words( $text, $num_words = 55, $more = null ) { 4052 4052 } 4053 4053 4054 4054 $original_text = $text; 4055 $text = preg_replace( '/<br\b[^>]*\/?>/i', ' ', $text ); 4055 4056 $text = wp_strip_all_tags( $text ); 4056 4057 $num_words = (int) $num_words; 4057 4058