Make WordPress Core


Ignore:
Timestamp:
04/12/2022 09:24:51 AM (2 years ago)
Author:
gziolo
Message:

REST API: Bring new endpoints for Block Patterns from Gutenberg plugin

Related Gutenberg issue: https://github.com/WordPress/gutenberg/issues/39889.

Backporting changes from the Gutenberg plugin:

  • new Block Patterns REST API endpoint
  • new Block Pattern Categories REST API endpoint
  • updates to Query Loop related patterns
  • support for custom taxonomies in Query Loop block

Props hellofromtonya, peterwilsoncc, ntsekouras, zieladam, ironprogrammer, spacedmonkey, timothyblynjacobs, antonvlasenko, jsnajdr.
See #55505.

File:
1 edited

Legend:

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

    r53072 r53152  
    162162            '/wp/v2/plugins/(?P<plugin>[^.\/]+(?:\/[^.\/]+)?)',
    163163            '/wp/v2/block-directory/search',
     164            '/wp/v2/block-patterns/categories',
     165            '/wp/v2/block-patterns/patterns',
    164166            '/wp/v2/sidebars',
    165167            '/wp/v2/sidebars/(?P<id>[\w-]+)',
Note: See TracChangeset for help on using the changeset viewer.