Make WordPress Core

Ticket #48549: 48549.diff

File 48549.diff, 648 bytes (added by krynes, 6 years ago)
  • src/wp-includes/kses.php

    diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php
    index 9c57c3a8e5..3000299f85 100644
    a b function wp_kses_attr( $element, $attr, $allowed_html, $allowed_protocols ) { 
    11521152 * @return bool Whether or not the attribute is allowed.
    11531153 */
    11541154function wp_kses_attr_check( &$name, &$value, &$whole, $vless, $element, $allowed_html ) {
     1155        if ( ! isset( $allowed_html[ strtolower( $element ) ] ) ) {
     1156                $name  = '';
     1157                $value = '';
     1158                $whole = '';
     1159                return false;
     1160        }
     1161
    11551162        $allowed_attr = $allowed_html[ strtolower( $element ) ];
    11561163
    11571164        $name_low = strtolower( $name );