Make WordPress Core

Ticket #36445: formatting.patch

File formatting.patch, 475 bytes (added by toddhuish, 10 years ago)

Proposed patch with preg_match change

  • .php

    old new  
    18001800        // WP bug fix for LOVE <3 (and other situations with '<' before a number)
    18011801        $text = preg_replace('#<([0-9]{1})#', '&lt;$1', $text);
    18021802
    1803         while ( preg_match("/<(\/?[\w:]*)\s*([^>]*)>/", $text, $regex) ) {
     1803        while ( preg_match("/<(\/?[\w:-]*)\s*([^>]*)>/", $text, $regex) ) {
    18041804                $newtext .= $tagqueue;
    18051805
    18061806                $i = strpos($text, $regex[0]);