From 40bb20fd834142c1cba0e8bffaa79936137b2593 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Sat, 27 Jul 2024 09:37:10 +0000 Subject: [PATCH] Multiple themes: Fixes Code block not adjusting to font size changes. This resolves the Code block not changing when the font sizes are switched in Twenty Eleven and Twenty Twelve. The solution is the same as used for other code block adjustments for font sizes. Props viralsampat, sabernhardt. Fixes #61753. Built from https://develop.svn.wordpress.org/trunk@58816 git-svn-id: http://core.svn.wordpress.org/trunk@58212 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/editor-style.css | 3 +++ wp-content/themes/twentyeleven/style.css | 3 +++ wp-content/themes/twentytwelve/editor-style.css | 3 +++ wp-content/themes/twentytwelve/style.css | 1 + wp-includes/version.php | 2 +- 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyeleven/editor-style.css b/wp-content/themes/twentyeleven/editor-style.css index 77342bf691..b9717cd002 100644 --- a/wp-content/themes/twentyeleven/editor-style.css +++ b/wp-content/themes/twentyeleven/editor-style.css @@ -119,6 +119,9 @@ pre { code, kbd, samp, var { font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; } +pre code { + font-size: inherit; +} abbr, acronym, dfn { border-bottom: 1px dotted #666; cursor: help; diff --git a/wp-content/themes/twentyeleven/style.css b/wp-content/themes/twentyeleven/style.css index fb10237ba7..dca83cfe9a 100644 --- a/wp-content/themes/twentyeleven/style.css +++ b/wp-content/themes/twentyeleven/style.css @@ -408,6 +408,9 @@ pre { code, kbd, samp, var { font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; } +pre code { + font-size: inherit; +} abbr, acronym, dfn { border-bottom: 1px dotted #666; cursor: help; diff --git a/wp-content/themes/twentytwelve/editor-style.css b/wp-content/themes/twentytwelve/editor-style.css index d3934a9151..9d3b015485 100644 --- a/wp-content/themes/twentytwelve/editor-style.css +++ b/wp-content/themes/twentytwelve/editor-style.css @@ -157,6 +157,9 @@ var { font-size: 0.857142857rem; line-height: 2; } +pre code { + font-size: inherit; +} abbr, acronym, dfn { diff --git a/wp-content/themes/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index 21b797f2ec..0ad1637480 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -903,6 +903,7 @@ article.sticky .featured-post { .entry-content pre code, .comment-content pre code { display: block; + font-size: inherit; } .entry-content abbr, .comment-content abbr, diff --git a/wp-includes/version.php b/wp-includes/version.php index b613f1d7f4..f91ef01b74 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58815'; +$wp_version = '6.7-alpha-58816'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.