From 3261d687bb8e4a17736ca2e7fa9c2eae6a0d1934 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sun, 16 Dec 2018 01:56:44 +0000 Subject: [PATCH] Block Editor: Remove CodeMirror settings. CodeMirror is no longer used in the block editor, so we don't need to load the settings. Merges [43857] from the 5.0 branch to trunk. Props noisysocks. Fixes #45248. git-svn-id: https://develop.svn.wordpress.org/trunk@44223 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-blocks.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php index d61456e97b..9e26086849 100644 --- a/src/wp-admin/edit-form-blocks.php +++ b/src/wp-admin/edit-form-blocks.php @@ -135,15 +135,6 @@ $meta_box_url = add_query_arg( wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url ); -// Populate default code editor settings by short-circuiting wp_enqueue_code_editor. -wp_add_inline_script( - 'wp-editor', - sprintf( - 'window._wpGutenbergCodeEditorSettings = %s;', - wp_json_encode( wp_get_code_editor_settings( array( 'type' => 'text/html' ) ) ) - ) -); - /* * Initialize the editor. */