Changeset 3418
- Timestamp:
- 01/10/06 01:27:36 (3 years ago)
- Files:
-
- trunk/wp-includes/kses.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/kses.php
r3417 r3418 99 99 # It matched a ">" character 100 100 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 } 103 107 # Allow HTML comments 104 108
