Make WordPress Core


Ignore:
Timestamp:
10/23/2018 06:52:03 AM (6 years ago)
Author:
pento
Message:

Blocks: Add the reusable block post type, wp_block.

See #45098.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/edit.php

    r42811 r43804  
    182182wp_enqueue_script('inline-edit-post');
    183183wp_enqueue_script('heartbeat');
     184
     185if ( 'wp_block' === $post_type ) {
     186    wp_enqueue_script( 'wp-list-reusable-blocks' );
     187    wp_enqueue_style( 'wp-list-reusable-blocks' );
     188}
    184189
    185190$title = $post_type_object->labels->name;
Note: See TracChangeset for help on using the changeset viewer.