Make WordPress Core

Ticket #20421: 20421.diff

File 20421.diff, 1.0 KB (added by Ipstenu, 13 years ago)

Removing netscape 4 stuff

  • wp-includes/kses.php

     
    551551        if ( empty( $allowed_protocols ) )
    552552                $allowed_protocols = wp_allowed_protocols();
    553553        $string = wp_kses_no_null($string);
    554         $string = wp_kses_js_entities($string);
    555554        $string = wp_kses_normalize_entities($string);
    556555        $allowed_html_fixed = wp_kses_array_lc($allowed_html);
    557556        $string = wp_kses_hook($string, $allowed_html_fixed, $allowed_protocols); // WP changed the order of these funcs and added args to wp_kses_hook
     
    10411040}
    10421041
    10431042/**
    1044  * Removes the HTML JavaScript entities found in early versions of Netscape 4.
    1045  *
    1046  * @since 1.0.0
    1047  *
    1048  * @param string $string
    1049  * @return string
    1050  */
    1051 function wp_kses_js_entities($string) {
    1052         return preg_replace('%&\s*\{[^}]*(\}\s*;?|$)%', '', $string);
    1053 }
    1054 
    1055 /**
    10561043 * Handles parsing errors in wp_kses_hair().
    10571044 *
    10581045 * The general plan is to remove everything to and including some whitespace,