Make WordPress Core


Ignore:
Timestamp:
05/25/2021 02:19:14 PM (4 years ago)
Author:
youknowriad
Message:

Block Editor: Introduce block templates for classic themes.

With this patch, users will be able to create custom block based templates
and assign them to specific pages/posts.

Themes can also opt-out of this feature

Props bernhard-reiter, carlomanf.
Fixes #53176.

File:
1 edited

Legend:

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

    r50505 r51003  
    6464    $template = locate_template( $templates );
    6565
     66    $template = locate_block_template( $template, $type, $templates );
     67
    6668    /**
    6769     * Filters the path of the queried template by type.
Note: See TracChangeset for help on using the changeset viewer.