Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Fixes a compatability bug with the Gutenberg plugin"
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public static function init() {
* Initialize the VideoPress Gutenberg extension
*/
private function __construct() {
add_action( 'init', array( $this, 'register_video_block_with_videopress' ) );
// Run late to avoid race condition with other plugins that register the video block
// Jetpack's jetpack_register_block function bails if the block is already registered
add_action( 'init', array( $this, 'register_video_block_with_videopress' ), 99 );
add_action( 'jetpack_register_gutenberg_extensions', array( $this, 'set_extension_availability' ) );
add_action( 'enqueue_block_editor_assets', array( $this, 'override_video_upload' ) );
add_action( 'enqueue_block_editor_assets', array( $this, 'add_resumable_upload_support' ) );
Expand Down