Make WordPress Core

Changeset 44223


Ignore:
Timestamp:
12/16/2018 01:56:44 AM (7 years ago)
Author:
jeremyfelt
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/edit-form-blocks.php

    r44214 r44223  
    135135wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url );
    136136
    137 
    138 // Populate default code editor settings by short-circuiting wp_enqueue_code_editor.
    139 wp_add_inline_script(
    140     'wp-editor',
    141     sprintf(
    142         'window._wpGutenbergCodeEditorSettings = %s;',
    143         wp_json_encode( wp_get_code_editor_settings( array( 'type' => 'text/html' ) ) )
    144     )
    145 );
    146137
    147138/*
Note: See TracChangeset for help on using the changeset viewer.