diff --git a/lib/client-assets.php b/lib/client-assets.php index 17a28cd8fc7a4..99eb3c5bb0dfb 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -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 );