Skip to content
Merged
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 backport-changelog/6.9/8961.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/8961

* https://github.com/WordPress/gutenberg/pull/70379
1 change: 1 addition & 0 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ class WP_Theme_JSON_Gutenberg {
// 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',
'select' => 'select',
);

const __EXPERIMENTAL_ELEMENT_CLASS_NAMES = array(
Expand Down
1 change: 1 addition & 0 deletions packages/blocks/src/api/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ export const __EXPERIMENTAL_ELEMENTS = {
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',
select: 'select',
};

// These paths may have three origins, custom, theme, and default,
Expand Down
3 changes: 3 additions & 0 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,9 @@
},
"cite": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
"select": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
},
"additionalProperties": false
Expand Down
Loading