Make WordPress Core

Ticket #57506: 57506.diff

File 57506.diff, 940 bytes (added by akrocks, 14 months ago)

Created patch adding theme support for block styles.

  • new file src/wp-content/themes/twentytwentythree/functions.php

    diff --git a/src/wp-content/themes/twentytwentythree/functions.php b/src/wp-content/themes/twentytwentythree/functions.php
    new file mode 100644
    index 00000000000..dd44a939d12
    - +  
     1<?php
     2/**
     3 * Twenty Twenty-Three functions and definitions
     4 *
     5 * @link https://developer.wordpress.org/themes/basics/theme-functions/
     6 *
     7 * @package WordPress
     8 * @subpackage Twenty_Twenty_Three
     9 * @since Twenty Twenty-Three 1.0
     10 */
     11
     12if ( ! function_exists( 'twentytwentythree_support' ) ) :
     13
     14        /**
     15         * Sets up theme defaults and registers support for various WordPress features.
     16         *
     17         * @since Twenty Twenty-Three 1.0
     18         *
     19         * @return void
     20         */
     21        function twentytwentythree_support(): void {
     22
     23                // Add support for block styles.
     24                add_theme_support( 'wp-block-styles' );
     25
     26        }
     27
     28endif;
     29
     30add_action( 'after_setup_theme', 'twentytwentythree_support' );