Make WordPress Core


Ignore:
Timestamp:
11/08/2021 11:09:53 PM (3 years ago)
Author:
noisysocks
Message:

Editor: Add block theme infrastructure

Adds the required infrastructure to render block-based themes. This is sourced
from the Gutenberg plugin.

Fixes #54335.
Props bernhard-reiter, youknowriad, ntsekouras, hellofromtonya.

File:
1 edited

Legend:

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

    r52049 r52062  
    665665add_filter( 'render_block_context', '_block_template_render_without_post_block_context' );
    666666add_filter( 'pre_wp_unique_post_slug', 'wp_filter_wp_template_unique_post_slug', 10, 5 );
     667add_action( 'save_post_wp_template_part', 'wp_set_unique_slug_on_create_template_part' );
    667668add_action( 'wp_footer', 'the_block_template_skip_link' );
    668669add_action( 'setup_theme', 'wp_enable_block_templates' );
Note: See TracChangeset for help on using the changeset viewer.