diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 8dcaf3c223..641054faf0 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1037,7 +1037,7 @@ function force_balance_tags( $text ) { # WP bug fix for LOVE <3 (and other situations with '<' before a number) $text = preg_replace('#<([0-9]{1})#', '<$1', $text); - while (preg_match("/<(\/?\w*)\s*([^>]*)>/",$text,$regex)) { + while (preg_match("/<(\/?[\w:]*)\s*([^>]*)>/",$text,$regex)) { $newtext .= $tagqueue; $i = strpos($text,$regex[0]);