diff --git a/wp-content/themes/twentytwentytwo/functions.php b/wp-content/themes/twentytwentytwo/functions.php
index 2f574b5869..4fce58c5e7 100644
--- a/wp-content/themes/twentytwentytwo/functions.php
+++ b/wp-content/themes/twentytwentytwo/functions.php
@@ -13,10 +13,7 @@
if ( ! function_exists( 'twentytwentytwo_support' ) ) :
/**
- * Add support for core block visual styles.
- * Styles load in both the editor and the front end.
- *
- * @link https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#default-block-styles
+ * Sets up theme defaults and registers support for various WordPress features.
*
* @since Twenty Twenty-Two 1.0
*
@@ -24,8 +21,12 @@ if ( ! function_exists( 'twentytwentytwo_support' ) ) :
*/
function twentytwentytwo_support() {
+ // Add support for block styles.
add_theme_support( 'wp-block-styles' );
+ // Enqueue editor styles.
+ add_editor_style( 'style.css' );
+
}
endif;
diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-image-grid.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-image-grid.php
index b1f10d715e..1588363c71 100644
--- a/wp-content/themes/twentytwentytwo/inc/patterns/query-image-grid.php
+++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-image-grid.php
@@ -10,11 +10,15 @@ return array(
-
-
+
diff --git a/wp-content/themes/twentytwentytwo/style.css b/wp-content/themes/twentytwentytwo/style.css
index cc70a5ab53..45ec4adc95 100644
--- a/wp-content/themes/twentytwentytwo/style.css
+++ b/wp-content/themes/twentytwentytwo/style.css
@@ -16,3 +16,55 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature
Twenty Twenty-Two WordPress Theme, (C) 2021 WordPress.org
Twenty Twenty-Two is distributed under the terms of the GNU GPL.
*/
+
+/*
+ * Font smoothing.
+ * This is a niche setting that will not be available via Global Styles.
+ * https://github.com/WordPress/gutenberg/issues/35934
+ */
+
+body {
+ -moz-osx-font-smoothing: grayscale;
+ -webkit-font-smoothing: antialiased;
+}
+
+/*
+ * Text link styles.
+ * Necessary until the following issue is resolved in Gutenberg:
+ * https://github.com/WordPress/gutenberg/issues/27075
+ */
+
+a {
+ text-decoration-thickness: 1px;
+ text-underline-offset: 0.25ch;
+}
+
+a:hover,
+a:focus {
+ text-decoration-style: dashed;
+}
+
+a:active {
+ text-decoration: none;
+}
+
+/*
+ * Search and File Block button styles.
+ * Necessary until the following issues are resolved in Gutenberg:
+ * https://github.com/WordPress/gutenberg/issues/36444
+ * https://github.com/WordPress/gutenberg/issues/27760
+ */
+
+.wp-block-search__button,
+.wp-block-file .wp-block-file__button {
+ background-color: var(--wp--preset--color--primary);
+ border-radius: 0;
+ border: none;
+ color: var(--wp--preset--color--background);
+ font-size: var(--wp--preset--typography--font-size--normal);
+ padding: calc(.667em + 2px) calc(1.333em + 2px);
+}
+
+.wp-block-file a.wp-block-file__button:hover {
+ opacity: 1;
+}
diff --git a/wp-content/themes/twentytwentytwo/theme.json b/wp-content/themes/twentytwentytwo/theme.json
index 93bbafcb8d..1452bf061f 100644
--- a/wp-content/themes/twentytwentytwo/theme.json
+++ b/wp-content/themes/twentytwentytwo/theme.json
@@ -1,6 +1,5 @@
{
- "$schema": "https://json.schemastore.org/theme-v1.json",
- "version": 1,
+ "version": 2,
"customTemplates": [
{
"name": "blank",
@@ -158,8 +157,8 @@
},
"spacing": {
"blockGap": true,
- "customMargin": true,
- "customPadding": true,
+ "margin": true,
+ "padding": true,
"units": [
"%",
"px",
@@ -171,7 +170,7 @@
},
"typography": {
"dropCap": false,
- "customLineHeight": true,
+ "lineHeight": true,
"fontFamilies": [
{
"fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif",
@@ -217,10 +216,10 @@
"wideSize": "1000px"
},
"border": {
- "customColor": true,
- "customRadius": true,
- "customStyle": true,
- "customWidth": true
+ "color": true,
+ "radius": true,
+ "style": true,
+ "width": true
}
},
"styles": {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 7a54961c41..eabe59c1b6 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.9-alpha-52163';
+$wp_version = '5.9-alpha-52164';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.