From 7b58ca24e3f53b2c780ba7bc6e0355a892d43bff Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Mon, 17 Dec 2018 03:03:38 +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. Built from https://develop.svn.wordpress.org/trunk@44223 git-svn-id: http://core.svn.wordpress.org/trunk@44053 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-blocks.php | 9 --------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index d61456e97b..9e26086849 100644 --- a/wp-admin/edit-form-blocks.php +++ b/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. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index bfe9146e63..212d406a9e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44222'; +$wp_version = '5.1-alpha-44223'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.