diff --git a/inc/admin/admin.php b/inc/admin/admin.php index 22f9162f1a..eaebbbaa0a 100644 --- a/inc/admin/admin.php +++ b/inc/admin/admin.php @@ -324,6 +324,7 @@ function rocket_analytics_data() { } $customer_data = get_transient( 'wp_rocket_customer_data' ); + $data['license_type'] = ''; if ( false !== $customer_data ) { $data['license_type'] = rocket_get_license_type( $customer_data ); } diff --git a/tests/Fixtures/inc/Engine/CDN/RocketCDN/NoticesSubscriber/promoteRocketcdnNotice.php b/tests/Fixtures/inc/Engine/CDN/RocketCDN/NoticesSubscriber/promoteRocketcdnNotice.php index 38328367fb..4b67324ce0 100644 --- a/tests/Fixtures/inc/Engine/CDN/RocketCDN/NoticesSubscriber/promoteRocketcdnNotice.php +++ b/tests/Fixtures/inc/Engine/CDN/RocketCDN/NoticesSubscriber/promoteRocketcdnNotice.php @@ -69,8 +69,8 @@ 'config' => [ 'role' => 'administrator', 'user_meta' => true, - 'screen' => 'settings_page_wprocket', - ], + 'screen' => 'settings_page_wprocket' + ], ], 'testShouldNotDisplayNoticeWhenActive' => [