Skip to content

Commit d0c86cd

Browse files
committed
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 [WordPress/gutenberg#56969 Details block: Exclusive accordions]. Follow-up to [14406], [59775]. Props soean. See #12835, #62887. Fixes #64127. git-svn-id: https://develop.svn.wordpress.org/trunk@61051 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 26230c3 commit d0c86cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wp-includes/kses.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
'details' => array(
150150
'align' => true,
151151
'open' => true,
152+
'name' => true,
152153
),
153154
'div' => array(
154155
'align' => true,

0 commit comments

Comments
 (0)