From e8349eba19dd6f57791d3014d7ccdf41ca94a310 Mon Sep 17 00:00:00 2001 From: joedolson Date: Fri, 10 Oct 2025 17:30:53 +0000 Subject: [PATCH] Bundled Themes: Prevent `pre` from overflowing container. Update CSS to set `overflow-x: auto` on `pre` elements in Twenty Twenty Two and Twenty Twenty Five. Props pateljaymin, jaiminp, nikunj8866, sabernhardt, rollybueno, joedolson. Fixes #63875. Built from https://develop.svn.wordpress.org/trunk@60921 git-svn-id: http://core.svn.wordpress.org/trunk@60257 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyfive/style.css | 8 ++++++++ wp-content/themes/twentytwentytwo/style.css | 9 +++++++++ wp-includes/version.php | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwentyfive/style.css b/wp-content/themes/twentytwentyfive/style.css index ac150b9788..df713de66a 100644 --- a/wp-content/themes/twentytwentyfive/style.css +++ b/wp-content/themes/twentytwentyfive/style.css @@ -59,3 +59,11 @@ h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p { .more-link { display: block; } + +/* + * Prevents unnecessary scrollbars while handling long lines of preformatted text. + * https://core.trac.wordpress.org/ticket/63875 + */ +:where(pre) { + overflow-x: auto; +} diff --git a/wp-content/themes/twentytwentytwo/style.css b/wp-content/themes/twentytwentytwo/style.css index 67fba3297a..738c880499 100644 --- a/wp-content/themes/twentytwentytwo/style.css +++ b/wp-content/themes/twentytwentytwo/style.css @@ -159,3 +159,12 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover, .wp-block-post-comments ol.commentlist li.comment:not(:last-child) { margin-bottom: 1rem; } + +/* + * Prevents unnecessary scrollbars while handling long lines of preformatted text. + * https://core.trac.wordpress.org/ticket/63875 + */ + +:where(pre) { + overflow-x: auto; +} diff --git a/wp-includes/version.php b/wp-includes/version.php index 98f9908143..c91dd70859 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60920'; +$wp_version = '6.9-alpha-60921'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.