Make WordPress Core


Ignore:
Timestamp:
07/01/2020 12:27:10 PM (4 years ago)
Author:
gziolo
Message:

Editor: Register core blocks on the server

Exposes all core blocks (excluding embeds) on the server to be used with the REST API block types endpoint.

Props spacedmonkey, timothyblynjacobs.
Fixes #50263.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r48242 r48262  
    286286require ABSPATH . WPINC . '/class-wp-block-parser.php';
    287287require ABSPATH . WPINC . '/blocks.php';
    288 require ABSPATH . WPINC . '/blocks/archives.php';
    289 require ABSPATH . WPINC . '/blocks/block.php';
    290 require ABSPATH . WPINC . '/blocks/calendar.php';
    291 require ABSPATH . WPINC . '/blocks/categories.php';
    292 require ABSPATH . WPINC . '/blocks/latest-comments.php';
    293 require ABSPATH . WPINC . '/blocks/latest-posts.php';
    294 require ABSPATH . WPINC . '/blocks/rss.php';
    295 require ABSPATH . WPINC . '/blocks/search.php';
    296 require ABSPATH . WPINC . '/blocks/shortcode.php';
    297 require ABSPATH . WPINC . '/blocks/social-link.php';
    298 require ABSPATH . WPINC . '/blocks/tag-cloud.php';
     288require ABSPATH . WPINC . '/blocks/index.php';
    299289
    300290$GLOBALS['wp_embed'] = new WP_Embed();
Note: See TracChangeset for help on using the changeset viewer.