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/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r50995 r51003  
    130130            '/wp/v2/block-types/(?P<namespace>[a-zA-Z0-9_-]+)/(?P<name>[a-zA-Z0-9_-]+)',
    131131            '/wp/v2/settings',
     132            '/wp/v2/templates',
     133            '/wp/v2/templates/(?P<id>[\/\w-]+)',
     134            '/wp/v2/templates/(?P<id>[\d]+)/autosaves',
     135            '/wp/v2/templates/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)',
     136            '/wp/v2/templates/(?P<parent>[\d]+)/revisions',
     137            '/wp/v2/templates/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)',
    132138            '/wp/v2/themes',
    133139            '/wp/v2/themes/(?P<stylesheet>[\w-]+)',
Note: See TracChangeset for help on using the changeset viewer.