mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
c92118203b
commit
7b58ca24e3
@ -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.
|
||||||
*/
|
*/
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user