Skip to content

Commit 86e4d43

Browse files
committed
Add theme.json support for pre
1 parent 1ab39ce commit 86e4d43

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/wp-includes/class-wp-theme-json.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ class WP_Theme_JSON {
600600
* The valid elements that can be found under styles.
601601
*
602602
* @since 5.8.0
603-
* @since 6.1.0 Added `heading`, `button`, and `caption` elements.
603+
* @since 6.1.0 Added `heading`, `button`, `caption`, and `cite` elements.
604+
* @since 6.9.0 Added `pre` element.
604605
* @var string[]
605606
*/
606607
const ELEMENTS = array(
@@ -617,6 +618,7 @@ class WP_Theme_JSON {
617618
// The block classes are necessary to target older content that won't use the new class names.
618619
'caption' => '.wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption',
619620
'cite' => 'cite',
621+
'pre' => 'pre',
620622
);
621623

622624
const __EXPERIMENTAL_ELEMENT_CLASS_NAMES = array(

0 commit comments

Comments
 (0)