Skip to content

Commit

Permalink
Add configs for simple classic to load blaze (#36842)
Browse files Browse the repository at this point in the history
* Add configs for simple classic to load blaze

* changelog
  • Loading branch information
candy02058912 authored Apr 11, 2024
1 parent 5be1e75 commit 74a831a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Update configs to accomodate for Simple Classic for Blaze
7 changes: 5 additions & 2 deletions projects/packages/blaze/src/class-dashboard-config-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public function get_data() {
'site_name' => \get_bloginfo( 'name' ),
'sections' => array(),
// Features are inlined in Calypso Blaze app (wp-calypso/apps/blaze-dashboard)
'features' => array(),
'features' => array(
'is_running_in_jetpack_site' => ! $host->is_wpcom_simple(),
),
'initial_state' => array(
'currentUser' => array(
'id' => $user['ID'],
Expand All @@ -67,7 +69,7 @@ public function get_data() {
"$blog_id" => array(
'ID' => $blog_id,
'URL' => site_url(),
'jetpack' => true,
'jetpack' => ! $host->is_wpcom_simple(),
'visible' => true,
'capabilities' => $empty_object,
'products' => array(),
Expand All @@ -76,6 +78,7 @@ public function get_data() {
'admin_url' => admin_url(),
'gmt_offset' => $this->get_gmt_offset(),
'is_wpcom_atomic' => $host->is_woa_site(),
'is_wpcom_simple' => $host->is_wpcom_simple(),
'jetpack_version' => Constants::get_constant( 'JETPACK__VERSION' ),
),
),
Expand Down

0 comments on commit 74a831a

Please sign in to comment.