Skip to content

Commit

Permalink
Framework: Remove code required for polyfilling moved components in b…
Browse files Browse the repository at this point in the history
…locks module
  • Loading branch information
gziolo committed Jun 21, 2018
1 parent 555f099 commit 8bf8d21
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1189,19 +1189,3 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
*/
do_action( 'enqueue_block_editor_assets' );
}

/**
* Ensure the editor module is loaded before third party plugins.
*
* Remove this in Gutenberg 3.1
*/
function polyfill_blocks_module_in_scripts() {
if ( ! is_gutenberg_page() ) {
return;
}

wp_enqueue_script( 'wp-editor' );
}

add_action( 'enqueue_block_editor_assets', 'polyfill_blocks_module_in_scripts', 9 );
add_action( 'enqueue_block_assets', 'polyfill_blocks_module_in_scripts', 9 );

0 comments on commit 8bf8d21

Please sign in to comment.