WordPress.org

Make WordPress Core

Changeset 43857


Ignore:
Timestamp:
11/01/2018 05:06:44 AM (13 months ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/edit-form-blocks.php

    r43840 r43857  
    142142wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url );
    143143
    144 
    145 // Populate default code editor settings by short-circuiting wp_enqueue_code_editor.
    146 wp_add_inline_script(
    147     'wp-editor',
    148     sprintf(
    149         'window._wpGutenbergCodeEditorSettings = %s;',
    150         wp_json_encode( wp_get_code_editor_settings( array( 'type' => 'text/html' ) ) )
    151     )
    152 );
    153144
    154145/*
Note: See TracChangeset for help on using the changeset viewer.