From f3c0f743b373c2cae4239b3dd05b7d429067c37e Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Fri, 7 Oct 2022 09:44:25 +0000 Subject: [PATCH] Fix: cite styles declared via theme.json not working. Fixes an issue where cite elements declared on theme.json are not being output on the front end of the website. Props oandregal, carolinan, scruffian. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54409 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-theme-json.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 91a56936ac..005e88dc29 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -423,6 +423,7 @@ class WP_Theme_JSON { 'button' => '.wp-element-button, .wp-block-button__link', // 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', ); const __EXPERIMENTAL_ELEMENT_CLASS_NAMES = array(