Make WordPress Core


Ignore:
Timestamp:
05/26/2021 01:10:57 AM (2 years 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/src/wp-settings.php

    r51013 r51021  
    269269require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-plugins-controller.php';
    270270require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-directory-controller.php';
     271require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php';
    271272require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-application-passwords-controller.php';
    272273require ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-site-health-controller.php';
Note: See TracChangeset for help on using the changeset viewer.