Ticket #45248: 45248.diff
| File 45248.diff, 624 bytes (added by , 8 years ago) |
|---|
-
src/wp-admin/edit-form-blocks.php
142 142 wp_localize_script( 'wp-editor', '_wpMetaBoxUrl', $meta_box_url ); 143 143 144 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 );153 154 145 /* 155 146 * Initialize the editor. 156 147 */