Make WordPress Core

Ticket #45248: 45248.diff

File 45248.diff, 624 bytes (added by noisysocks, 8 years ago)
  • src/wp-admin/edit-form-blocks.php

     
    142142wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url );
    143143
    144144
    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 );
    153 
    154145/*
    155146 * Initialize the editor.
    156147 */