Ticket #28449: 28449-the_content-orphans.patch
File 28449-the_content-orphans.patch, 640 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/post-template.php
IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8
220 220 */ 221 221 $content = apply_filters( 'the_content', $content ); 222 222 $content = str_replace( ']]>', ']]>', $content ); 223 /** Add before last word to prevent widow */ 224 $content = preg_replace('/\s([\w]+[.,!\:;\\"-?]{0,1})$/', ' \\1', $content); 223 225 echo $content; 224 226 } 225 227