Ticket #11678: 11678.lowercase-tagnames.patch
File 11678.lowercase-tagnames.patch, 531 bytes (added by , 12 years ago) |
---|
-
wp-includes/formatting.php
171 171 172 172 if ( trim($pee) === '' ) 173 173 return ''; 174 175 // Lowercase tagnames 176 $pee = preg_replace('/<[\/]?[A-Z]+/e', "strtolower('\\0')", $pee); 177 174 178 $pee = $pee . "\n"; // just to make things a little easier, pad the end 175 179 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 176 180 // Space things out a little