Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/wp-content/themes/twentytwentyfive/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,9 @@
"textDecoration": "none"
}
}
},
"pre": {
"css": "&{overflow-x:auto;}"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/wp-content/themes/twentytwentyfour/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,9 @@
"color": {
"text": "var(--wp--preset--color--contrast)"
}
},
"pre": {
"css": "&{overflow-x:auto;}"
}
},
"spacing": {
Expand Down
3 changes: 3 additions & 0 deletions src/wp-content/themes/twentytwentythree/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,9 @@
"typography": {
"textDecoration": "underline"
}
},
"pre": {
"css": "&{overflow-x:auto;}"
}
},
"spacing": {
Expand Down
3 changes: 3 additions & 0 deletions src/wp-content/themes/twentytwentytwo/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@
"color": {
"text": "var(--wp--preset--color--foreground)"
}
},
"pre": {
"css": "&{overflow-x:auto;}"
}
},
"spacing": {
Expand Down
4 changes: 3 additions & 1 deletion src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,8 @@ class WP_Theme_JSON {
* The valid elements that can be found under styles.
*
* @since 5.8.0
* @since 6.1.0 Added `heading`, `button`, and `caption` elements.
* @since 6.1.0 Added `heading`, `button`, `caption`, and `cite` elements.
* @since 6.9.0 Added `pre` element.
* @var string[]
*/
const ELEMENTS = array(
Expand All @@ -617,6 +618,7 @@ class WP_Theme_JSON {
// The block classes are necessary to target older content that won't use the new class names.
'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',
'cite' => 'cite',
'pre' => 'pre',
);

const __EXPERIMENTAL_ELEMENT_CLASS_NAMES = array(
Expand Down
Loading