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: fixed

Always enqueue Jetpack Connnection info when enqueuing Blaze script
4 changes: 4 additions & 0 deletions projects/packages/blaze/src/class-blaze.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace Automattic\Jetpack;

use Automattic\Jetpack\Connection\Initial_State as Connection_Initial_State;
use Automattic\Jetpack\Connection\Manager as Jetpack_Connection;
use Automattic\Jetpack\Status\Host;
use Automattic\Jetpack\Sync\Settings as Sync_Settings;
Expand Down Expand Up @@ -190,5 +191,8 @@ public function enqueue_block_editor_assets( $hook ) {
'textdomain' => 'jetpack-blaze',
)
);

// Adds Connection package initial state.
wp_add_inline_script( 'jetpack-promote-editor', Connection_Initial_State::render(), 'before' );
}
}