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
This commit is contained in:
Jeremy Felt 2018-12-17 03:03:38 +00:00
parent c92118203b
commit 7b58ca24e3
2 changed files with 1 additions and 10 deletions

View File

@ -135,15 +135,6 @@ $meta_box_url = add_query_arg(
wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url ); 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. * Initialize the editor.
*/ */

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.