X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5964d2279dc52bdfe105f9bfa17e04337d47a3fa..e08b42e8ad054ec67522d7ac1aaae5dc68cb3d01:/wp-includes/kses.php diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 4c42134e..531e6efe 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -230,6 +230,7 @@ if ( ! CUSTOM_TAGS ) { ), 'li' => array( 'align' => true, + 'value' => true, ), 'map' => array( 'name' => true, @@ -445,6 +446,8 @@ if ( ! CUSTOM_TAGS ) { 'nsub', 'sube', 'supe', 'oplus', 'otimes', 'perp', 'sdot', 'lceil', 'rceil', 'lfloor', 'rfloor', 'lang', 'rang', 'loz', 'spades', 'clubs', 'hearts', 'diams', + 'sup1', 'sup2', 'sup3', 'frac14', 'frac12', 'frac34', + 'there4', ); $allowedposttags = array_map( '_wp_add_global_attributes', $allowedposttags ); @@ -1118,7 +1121,7 @@ function wp_kses_normalize_entities($string) { # Change back the allowed entities in our entity whitelist - $string = preg_replace_callback('/&([A-Za-z]{2,8});/', 'wp_kses_named_entities', $string); + $string = preg_replace_callback('/&([A-Za-z]{2,8}[0-9]{0,2});/', 'wp_kses_named_entities', $string); $string = preg_replace_callback('/&#(0*[0-9]{1,7});/', 'wp_kses_normalize_entities2', $string); $string = preg_replace_callback('/&#[Xx](0*[0-9A-Fa-f]{1,6});/', 'wp_kses_normalize_entities3', $string);