WordPress.org

Make WordPress Core

Ticket #9270: 9270.diff

File 9270.diff, 536 bytes (added by Denis-de-Bernardy, 6 years ago)
  • wp-includes/formatting.php

     
    842842        # WP bug fix for LOVE <3 (and other situations with '<' before a number) 
    843843        $text = preg_replace('#<([0-9]{1})#', '&lt;$1', $text); 
    844844 
    845         while (preg_match("/<(\/?\w*)\s*([^>]*)>/",$text,$regex)) { 
     845        while (preg_match("/<(\/?\w+)\s*([^>]*)>/",$text,$regex)) { 
    846846                $newtext .= $tagqueue; 
    847847 
    848848                $i = strpos($text,$regex[0]);