Make WordPress Core


Ignore:
Timestamp:
05/11/2017 07:22:17 PM (8 years ago)
Author:
ocean90
Message:

KSES: Support 'tag' => true as a shorthand for 'tag' => array() in wp_kses_attr().

Automatic_Upgrader_Skin::feedback() had always assumed that this is already the case, now it is.

See #20017.
Fixes #40680.

File:
1 edited

Legend:

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

    r39638 r40637  
    829829
    830830    // Are any attributes allowed at all for this element?
    831     if ( ! isset($allowed_html[strtolower($element)]) || count($allowed_html[strtolower($element)]) == 0 )
     831    if ( ! isset( $allowed_html[ strtolower( $element ) ] ) || true === $allowed_html[ strtolower( $element ) ] || count( $allowed_html[ strtolower( $element ) ] ) == 0 ) {
    832832        return "<$element$xhtml_slash>";
     833    }
    833834
    834835    // Split it
Note: See TracChangeset for help on using the changeset viewer.