Changeset 3418

Show
Ignore:
Timestamp:
01/10/06 01:27:36 (3 years ago)
Author:
ryan
Message:

Rerun comment text back through kses.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/kses.php

    r3417 r3418  
    9999    # It matched a ">" character 
    100100 
    101     if (preg_match('%^<!--.*-->$%', $string)) 
    102         return $string; 
     101    if (preg_match('%^<!--(.*)-->$%', $string, $matches)) { 
     102        $string = $matches[1]; 
     103        while ( $string != $newstring = wp_kses($string, $allowed_html, $allowed_protocols) ) 
     104            $string = $newstring; 
     105        return "<!--{$string}-->"; 
     106    } 
    103107    # Allow HTML comments 
    104108