Make WordPress Core


Ignore:
Timestamp:
07/06/2007 12:53:15 PM (18 years ago)
Author:
markjaquith
Message:

Entitize lone less-than characters. Props mdawaffe. fixes #4409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/kses.php

    r5700 r5783  
    231231    $string = wp_kses_js_entities($string);
    232232    $string = wp_kses_normalize_entities($string);
    233     $string = wp_kses_hook($string);
    234233    $allowed_html_fixed = wp_kses_array_lc($allowed_html);
     234    $string = wp_kses_hook($string, $allowed_html_fixed, $allowed_protocols); // WP changed the order of these funcs and added args to wp_kses_hook
    235235    return wp_kses_split($string, $allowed_html_fixed, $allowed_protocols);
    236236} # function wp_kses
    237237
    238 function wp_kses_hook($string)
     238function wp_kses_hook($string, $allowed_html, $allowed_protocols)
    239239###############################################################################
    240240# You add any kses hooks here.
    241241###############################################################################
    242242{
     243    $string = apply_filters( 'pre_kses', $string );
    243244    return $string;
    244245} # function wp_kses_hook
Note: See TracChangeset for help on using the changeset viewer.