Make WordPress Core

Ticket #45402: 45402.4.diff

File 45402.4.diff, 1.7 KB (added by youknowriad, 7 years ago)
  • src/wp-admin/edit.php

     
    183183wp_enqueue_script('heartbeat');
    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
    192190$title = $post_type_object->labels->name;
  • src/wp-includes/script-loader.php

     
    111111                $path = "/wp-includes/js/dist/vendor/$handle$dev_suffix.js";
    112112                $version = $vendor_scripts_versions[ $handle ];
    113113
    114                 $scripts->add( $handle, $path, $dependencies, false, $version );
     114                $scripts->add( $handle, $path, $dependencies, $version, 1 );
    115115        }
    116116
    117117        $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) );
     
    210210                'api-fetch' => '2.2.5',
    211211                'a11y' => '2.0.2',
    212212                'annotations' => '1.0.3',
    213                 'api-fetch' => '2.2.5',
    214213                'autop' => '2.0.2',
    215214                'blob' => '2.1.0',
    216215                'block-library' => '2.2.7',
     
    468467                $path    = "/wp-includes/js/dist/$package$suffix.js";
    469468                $version = $packages_versions[ $package ];
    470469
    471                 $scripts->add( $handle, $path, $dependencies, false, $version );
     470                $scripts->add( $handle, $path, $dependencies, $version, 1 );
    472471
    473472                if ( isset( $package_translations[ $package ] ) ) {
    474473                        $scripts->set_translations( $handle, $package_translations[ $package ] );