Skip to content

Commit

Permalink
Hack around #20357
Browse files Browse the repository at this point in the history
  • Loading branch information
anomiex committed Nov 16, 2021
1 parent d23e52c commit d92fe0b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/plugins/jetpack/class.jetpack-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,13 @@ public static function enqueue_block_editor_assets() {
"{$blocks_dir}editor{$blocks_env}.min.js",
JETPACK__PLUGIN_FILE
);

// Hack around #20357 (specifically, that the editor bundle depends on
// wp-edit-post but wp-edit-post's styles break the Widget Editor and
// Site Editor) until a real fix gets unblocked.
// @todo Remove this once #20357 is properly fixed.
wp_styles()->query( 'jetpack-blocks-editor', 'registered' )->deps = array();

Assets::enqueue_script( 'jetpack-blocks-editor' );

wp_localize_script(
Expand Down

0 comments on commit d92fe0b

Please sign in to comment.