Make WordPress Core

Changeset 61051


Ignore:
Timestamp:
10/22/2025 09:00:17 PM (16 hours ago)
Author:
westonruter
Message:

Editor: Allow name attribute on the details element in KSES.

The details element supports the exclusive accordion behavior among multiple details elements by setting a common name attribute. The ability to set the name attribute in the Details block was added in of Gutenberg 20.2. However, when a user without unfiltered_html attempts to save the post, the name attribute gets erroneously stripped out. This prevents that.

See Details block: Exclusive accordions.

Follow-up to [14406], [59775].

Props soean.
See #12835, #62887.
Fixes #64127.

File:
1 edited

Legend:

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

    r61017 r61051  
    150150            'align' => true,
    151151            'open'  => true,
     152            'name'  => true,
    152153        ),
    153154        'div'        => array(
Note: See TracChangeset for help on using the changeset viewer.