Make WordPress Core


Ignore:
Timestamp:
12/14/2018 02:34:28 AM (5 years ago)
Author:
jeremyfelt
Message:

REST API: Add endpoints for blocks.

WP_REST_Block_Renderer_Controller allows rendering of server-side rendered blocks, whilst WP_REST_Blocks_Controller allows retrieving of reusable blocks.

Merges [43805] and [43806] from the 5.0 branch to trunk.

Props desrosj, danielbachhuber, pento, Presskopp, swissspidy.
See #45065, #45098.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-settings.php

    r44126 r44150  
    237237require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-comments-controller.php' );
    238238require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-search-controller.php' );
     239require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-blocks-controller.php' );
     240require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-block-renderer-controller.php' );
    239241require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-settings-controller.php' );
    240242require( ABSPATH . WPINC . '/rest-api/endpoints/class-wp-rest-themes-controller.php' );
Note: See TracChangeset for help on using the changeset viewer.