mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-18 14:21:25 +01:00
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:
parent
d8846f5ebb
commit
2660f3f8f3
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user