WordPress.org

Make WordPress Core

Changeset 50835


Ignore:
Timestamp:
05/10/2021 06:37:36 PM (3 months ago)
Author:
desrosj
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

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

    r50810 r50835  
    306306                'title',
    307307                'editor',
     308                'revisions',
    308309            ),
    309310        )
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r50463 r50835  
    104104            '/wp/v2/blocks/(?P<id>[\d]+)/autosaves',
    105105            '/wp/v2/blocks/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)',
     106            '/wp/v2/blocks/(?P<parent>[\d]+)/revisions',
     107            '/wp/v2/blocks/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)',
    106108            '/wp/v2/types',
    107109            '/wp/v2/types/(?P<type>[\\w-]+)',
Note: See TracChangeset for help on using the changeset viewer.