Block Editor: Remove CodeMirror settings.

CodeMirror is no longer used in the block editor, so we don't need to load the settings.

Props noisysocks.
Fixes #45248.


Built from https://develop.svn.wordpress.org/branches/5.0@43857


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2018-11-01 05:07:47 +00:00
parent d9e31a1bb9
commit 6ad646a080
2 changed files with 1 additions and 10 deletions

View File

@ -142,15 +142,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.
*/

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-beta2-43856';
$wp_version = '5.0-beta2-43857';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.