mirror of
git://develop.git.wordpress.org/
synced 2025-04-22 13:12:11 +02:00
Posts, Post Types: Enable revisions for the wp_block
post type.
This allows site owners to take advantage of revisions while broader improvements to block management and reusable blocks are explored. Props matveb, audrasjb, desrosj. Fixes #53072. git-svn-id: https://develop.svn.wordpress.org/trunk@50835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6db619b7d6
commit
2ac7f39570
@ -305,6 +305,7 @@ function create_initial_post_types() {
|
||||
'supports' => array(
|
||||
'title',
|
||||
'editor',
|
||||
'revisions',
|
||||
),
|
||||
)
|
||||
);
|
||||
|
@ -103,6 +103,8 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase {
|
||||
'/wp/v2/blocks/(?P<id>[\d]+)',
|
||||
'/wp/v2/blocks/(?P<id>[\d]+)/autosaves',
|
||||
'/wp/v2/blocks/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)',
|
||||
'/wp/v2/blocks/(?P<parent>[\d]+)/revisions',
|
||||
'/wp/v2/blocks/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)',
|
||||
'/wp/v2/types',
|
||||
'/wp/v2/types/(?P<type>[\\w-]+)',
|
||||
'/wp/v2/statuses',
|
||||
|
Loading…
x
Reference in New Issue
Block a user