]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/kses.php
WordPress 3.8.1
[autoinstalls/wordpress.git] / wp-includes / kses.php
index 4c42134e7a7d689c22d66aeb049b3140c7436900..531e6efea0b768deee7fbeae6e8553838c0b1e7d 100644 (file)
@@ -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);