WordPress.org

Make WordPress Core

Ticket #43312: 43312.patch

File 43312.patch, 626 bytes (added by SergeyBiryukov, 20 months ago)
  • src/wp-includes/kses.php

     
    10471047        }
    10481048
    10491049        // Are any attributes allowed at all for this element?
    1050         if ( ! isset( $allowed_html[ strtolower( $element ) ] ) || true === $allowed_html[ strtolower( $element ) ] || count( $allowed_html[ strtolower( $element ) ] ) == 0 ) {
     1050        $element_low = strtolower( $element );
     1051        if ( empty( $allowed_html[ $element_low ] ) || true === $allowed_html[ $element_low ] ) {
    10511052                return "<$element$xhtml_slash>";
    10521053        }
    10531054