WordPress.org

Make WordPress Core

Ticket #45396: 45396.diff

File 45396.diff, 592 bytes (added by noisysocks, 20 months ago)
  • src/wp-admin/edit.php

     
    183183wp_enqueue_script('heartbeat');
    184184
    185185if ( 'wp_block' === $post_type ) {
    186         wp_enqueue_script( 'wp-list-reusable-blocks' );
    187186        wp_enqueue_style( 'wp-list-reusable-blocks' );
     187
     188        // wp-list-reusable-blocks enhances the page's DOM and so needs to be loaded in the footer.
     189        wp_enqueue_script( 'wp-list-reusable-blocks', '', array(), false, true );
    188190}
    189191
    190192$title = $post_type_object->labels->name;