Skip to content

Commit

Permalink
Remove gutenberg_enqueue_wp_old_editor_compatibility_snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jul 8, 2021
1 parent f4601f7 commit 723a9c8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function gutenberg_override_script( $scripts, $handle, $src, $deps = array(), $v
* Solution: fuse the two objects together to maintain backward compatibility.
* For more context, see https://github.com/WordPress/gutenberg/issues/33203
*/
wp_add_inline_script(
$scripts->add_inline_script(
'wp-editor',
'Object.assign(window.wp.editor, window.wp.oldEditor);',
'after'
Expand Down
1 change: 0 additions & 1 deletion lib/widgets-customize.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ function gutenberg_customize_widgets_init() {
wp_enqueue_style( 'wp-customize-widgets' );
wp_enqueue_script( 'wp-format-library' );
wp_enqueue_style( 'wp-format-library' );
gutenberg_enqueue_wp_old_editor_compatibility_snippet();
do_action( 'enqueue_block_editor_assets' );
}

Expand Down
1 change: 0 additions & 1 deletion lib/widgets-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function gutenberg_widgets_init( $hook ) {
return;
}

gutenberg_enqueue_wp_old_editor_compatibility_snippet();
add_filter( 'admin_body_class', 'gutenberg_widgets_editor_add_admin_body_classes' );

$widgets_editor_context = new WP_Block_Editor_Context();
Expand Down

0 comments on commit 723a9c8

Please sign in to comment.