Recognise namespaces in tags for balanceTags(). Fixes #11968

git-svn-id: http://svn.automattic.com/wordpress/trunk@13913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-04-01 13:16:44 +00:00
parent d8846f5ebb
commit 2660f3f8f3
1 changed files with 1 additions and 1 deletions

View File

@ -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})#', '&lt;$1', $text);
while (preg_match("/<(\/?\w*)\s*([^>]*)>/",$text,$regex)) {
while (preg_match("/<(\/?[\w:]*)\s*([^>]*)>/",$text,$regex)) {
$newtext .= $tagqueue;
$i = strpos($text,$regex[0]);