WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/14/2018 02:14:13 AM (12 months ago)
Author:
jeremyfelt
Message:

Blocks: Add the reusable block post type, wp_block.

Merges [43804] from the 5.0 branch to trunk.

See #45098.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/edit.php

    r43571 r44146  
    200200wp_enqueue_script( 'inline-edit-post' );
    201201wp_enqueue_script( 'heartbeat' );
     202
     203if ( 'wp_block' === $post_type ) {
     204    wp_enqueue_script( 'wp-list-reusable-blocks' );
     205    wp_enqueue_style( 'wp-list-reusable-blocks' );
     206}
    202207
    203208$title = $post_type_object->labels->name;
Note: See TracChangeset for help on using the changeset viewer.