We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3dc444 commit e88f527Copy full SHA for e88f527
projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/index.php
@@ -719,6 +719,11 @@ function wpcom_site_has_global_styles_feature( $blog_id = 0 ) {
719
* @return bool Whether the current user is assigned to a non-null variation for the experiment.
720
*/
721
function wpcom_global_styles_assignment_api_request( $experiment_key ) {
722
+ $connection_manager = new Automattic\Jetpack\Connection\Manager();
723
+ if ( ! $connection_manager->is_user_connected() ) {
724
+ return false;
725
+ }
726
+
727
$path = '/me/explat-assignments';
728
$body = array( 'experiment' => (string) $experiment_key );
729
$response = Automattic\Jetpack\Connection\Client::wpcom_json_api_request_as_user(
0 commit comments