Make WordPress Core

Changeset 3418


Ignore:
Timestamp:
01/10/2006 01:27:36 AM (19 years ago)
Author:
ryan
Message:

Rerun comment text back through kses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.