Make WordPress Core


Ignore:
Timestamp:
12/14/2021 09:47:51 AM (3 years ago)
Author:
audrasjb
Message:

Editor: Activate missing default theme features for block themes.

By default, block themes should have a few theme supports enabled by default. These are: post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links. This changeset backports the changes introduced in https://github.com/WordPress/gutenberg/pull/35593.

Props noisysocks, ocean90, youknowriad, audrasjb, hellofromTonya.
Fixes #54597.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r52364 r52369  
    515515// Theme.
    516516add_action( 'setup_theme', 'create_initial_theme_features', 0 );
     517add_action( 'setup_theme', '_add_default_theme_supports', 1 );
    517518add_action( 'wp_loaded', '_custom_header_background_just_in_time' );
    518519add_action( 'wp_head', '_custom_logo_header_styles' );
Note: See TracChangeset for help on using the changeset viewer.