From 11dfccd8941f8e0343345b73d1cd3b964cb2d1d1 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Thu, 28 Mar 2024 20:58:17 +0000 Subject: [PATCH] Twenty Twelve: Fixes table block font size not changing. Currently the table block font size does not change in the editor or front-end. This ensures this is reflected in the table block. Props sabernhardt, tahmidulkarim, sheulyshila. Fixes #58074. Built from https://develop.svn.wordpress.org/trunk@57897 git-svn-id: http://core.svn.wordpress.org/trunk@57398 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/css/blocks.css | 5 +++++ wp-content/themes/twentytwelve/css/editor-blocks.css | 5 +++++ wp-includes/version.php | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwelve/css/blocks.css b/wp-content/themes/twentytwelve/css/blocks.css index d69ef621c6..9941ed9283 100644 --- a/wp-content/themes/twentytwelve/css/blocks.css +++ b/wp-content/themes/twentytwelve/css/blocks.css @@ -242,6 +242,11 @@ pre.wp-block-code { padding: 6px 10px 6px 0; } +.wp-block-table[style*="font-size"] *, +.wp-block-table[class*="-font-size"] * { + font-size: inherit; +} + /*-------------------------------------------------------------- 4.0 Blocks - Layout Elements --------------------------------------------------------------*/ diff --git a/wp-content/themes/twentytwelve/css/editor-blocks.css b/wp-content/themes/twentytwelve/css/editor-blocks.css index 39a4d87af4..071bce76da 100644 --- a/wp-content/themes/twentytwelve/css/editor-blocks.css +++ b/wp-content/themes/twentytwelve/css/editor-blocks.css @@ -315,6 +315,11 @@ p.has-drop-cap:not(:focus)::first-letter { color: inherit; } +.editor-styles-wrapper .wp-block-table[style*="font-size"] *, +.editor-styles-wrapper .wp-block-table[class*="-font-size"] * { + font-size: inherit; +} + .editor-block-list__block .wp-block-table th { border: 0; font-size: 11px; diff --git a/wp-includes/version.php b/wp-includes/version.php index ebb977850f..49cbfaffec 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57896'; +$wp_version = '6.6-alpha-57897'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.