From 2660f3f8f331c0dc7c304d441e75fcad52982de2 Mon Sep 17 00:00:00 2001 From: dd32 Date: Thu, 1 Apr 2010 13:16:44 +0000 Subject: [PATCH] Recognise namespaces in tags for balanceTags(). Fixes #11968 git-svn-id: http://svn.automattic.com/wordpress/trunk@13913 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);