Make WordPress Core

Changeset 13913


Ignore:
Timestamp:
04/01/2010 01:16:44 PM (14 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r13903 r13913  
    10381038    $text = preg_replace('#<([0-9]{1})#', '&lt;$1', $text);
    10391039
    1040     while (preg_match("/<(\/?\w*)\s*([^>]*)>/",$text,$regex)) {
     1040    while (preg_match("/<(\/?[\w:]*)\s*([^>]*)>/",$text,$regex)) {
    10411041        $newtext .= $tagqueue;
    10421042
Note: See TracChangeset for help on using the changeset viewer.