mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user