Changeset 3418
- Timestamp:
- 01/10/2006 01:27:36 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.