WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/26/2021 01:10:57 AM (7 months ago)
Author:
ryelle
Message:

Block Editor: Add support for the pattern directory.

Add an endpoint for fetching block patterns from WordPress.org, and load the block patterns from this new API. Remove the block patterns that have already been moved to WordPress.org/patterns.

Props ryelle, iandunn, youknowriad, timothyblynjacobs.
Fixes #53246.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r51003 r51021  
    9696            '/wp/v2/pages/(?P<id>[\\d]+)/autosaves',
    9797            '/wp/v2/pages/(?P<parent>[\\d]+)/autosaves/(?P<id>[\\d]+)',
     98            '/wp/v2/pattern-directory/patterns',
    9899            '/wp/v2/media',
    99100            '/wp/v2/media/(?P<id>[\\d]+)',
Note: See TracChangeset for help on using the changeset viewer.