WordPress.org

Make WordPress Core

Ticket #11678: 11678.lowercase-tagnames.patch

File 11678.lowercase-tagnames.patch, 531 bytes (added by kurtpayne, 7 years ago)

Change text to use lowercase tagnames

  • wp-includes/formatting.php

     
    171171
    172172        if ( trim($pee) === '' )
    173173                return '';
     174       
     175        // Lowercase tagnames
     176        $pee = preg_replace('/<[\/]?[A-Z]+/e', "strtolower('\\0')", $pee);
     177       
    174178        $pee = $pee . "\n"; // just to make things a little easier, pad the end
    175179        $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
    176180        // Space things out a little