Ticket #4723: 4723.patch
File 4723.patch, 533 bytes (added by , 17 years ago) |
---|
-
wp-includes/kses.php
318 318 # Is there a closing XHTML slash at the end of the attributes? 319 319 320 320 $xhtml_slash = ''; 321 if (preg_match('% \s/\s*$%', $attr))321 if (preg_match('%(\s?)/\s*$%', $attr, $match)) { 322 322 $xhtml_slash = ' /'; 323 if ( '' == $match[1] ) 324 $attr = rtrim($attr, '/ ') . ' /'; 325 } 323 326 324 327 # Are any attributes allowed at all for this element? 325 328