Make WordPress Core


Ignore:
Timestamp:
11/15/2021 07:13:33 PM (3 years ago)
Author:
jffng
Message:

Twenty Twenty-Two: Import the latest changes from GitHub.

Updates theme.json to use v2 shape, adds styles to search and file block as well as generic text decoration. Fixes a bug in the layout of a query block pattern.

This is a follow-up to [52081]. These changes are ongoing and development continues on GitHub. To view all of the changes included in this commit, see GitHub: https://github.com/WordPress/twentytwentytwo/compare/99db6063beb87eda7f58c3983992d94cd756d9c2...a11fb4932a0f79dc2668e92f118fd315256be9d9

Props desrosj, kjellr, poena.
See #54318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentytwo/functions.php

    r52081 r52164  
    1414
    1515    /**
    16      * Add support for core block visual styles.
    17      * Styles load in both the editor and the front end.
    18      *
    19      * @link https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#default-block-styles
     16     * Sets up theme defaults and registers support for various WordPress features.
    2017     *
    2118     * @since Twenty Twenty-Two 1.0
     
    2522    function twentytwentytwo_support() {
    2623
     24        // Add support for block styles.
    2725        add_theme_support( 'wp-block-styles' );
     26
     27        // Enqueue editor styles.
     28        add_editor_style( 'style.css' );
    2829
    2930    }
Note: See TracChangeset for help on using the changeset viewer.