Skip to content

Commit

Permalink
Jetpack: Fix order of Jetpack_Gutenberg function calls. (#41440)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj authored and matticbot committed Jan 30, 2025
1 parent 4042ff0 commit 4009648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ function jetpack_blocks_activate_module() {
delete_option( 'jetpack_blocks_disabled' ); // The function will check and return early if not present.
}

Jetpack_Gutenberg::load_independent_blocks();
Jetpack_Gutenberg::load_block_editor_extensions();
Jetpack_Gutenberg::load_independent_blocks();
Jetpack_Gutenberg::register_block_metadata_collection();

/**
* We've switched from enqueue_block_editor_assets to enqueue_block_assets in WP-Admin because the assets with the former are loaded on the main site-editor.php.
Expand All @@ -43,4 +44,3 @@ function jetpack_blocks_activate_module() {
add_action( 'enqueue_block_editor_assets', array( 'Jetpack_Gutenberg', 'enqueue_block_editor_assets' ) );
}
add_filter( 'render_block', array( 'Jetpack_Gutenberg', 'display_deprecated_block_message' ), 10, 2 );
add_action( 'plugins_loaded', array( 'Jetpack_Gutenberg', 'register_block_metadata_collection' ) );

0 comments on commit 4009648

Please sign in to comment.