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

git-svn-id: https://develop.svn.wordpress.org/trunk@13913 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-04-01 13:16:44 +00:00
parent 189c79def4
commit 6edd892710
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]);