WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/23/2018 08:34:44 AM (11 months ago)
Author:
youknowriad
Message:

Block Editor: Fix the WordPress packages and vendor script registration.

The version is set properly and the scripts are automatically loaded in the footer.
This patch also includes a revert for the reusable blocks enqueue script.

Props pento, swissspidy.
Fixes #45402.
See #45396.

File:
1 edited

Legend:

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

    r43936 r43942  
    184184
    185185if ( 'wp_block' === $post_type ) {
     186    wp_enqueue_script( 'wp-list-reusable-blocks' );
    186187    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 );
    190188}
    191189
Note: See TracChangeset for help on using the changeset viewer.