Blocks: Add the reusable block post type, wp_block.

Merges [43804] from the 5.0 branch to trunk.

See #45098.


git-svn-id: https://develop.svn.wordpress.org/trunk@44146 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt
2018-12-14 02:14:13 +00:00
parent 93836b4fb7
commit 6a84afa33c
5 changed files with 245 additions and 0 deletions

View File

@@ -200,6 +200,11 @@ $wp_list_table->prepare_items();
wp_enqueue_script( 'inline-edit-post' );
wp_enqueue_script( 'heartbeat' );
if ( 'wp_block' === $post_type ) {
wp_enqueue_script( 'wp-list-reusable-blocks' );
wp_enqueue_style( 'wp-list-reusable-blocks' );
}
$title = $post_type_object->labels->name;
if ( 'post' == $post_type ) {