Skip to content

Commit

Permalink
Merge pull request #2948 from WPO-Foundation/experiments-flag
Browse files Browse the repository at this point in the history
feat(flag): experiment feature flag
  • Loading branch information
jefflembeck authored Jul 17, 2023
2 parents 191e36a + 71e3e4e commit 760d04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/experiments.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function observationHTML($parts)
}

// experiments are enabled for the following criteria
$experimentEnabled = $experiments_paid || ( in_array($expNum, $allowedFreeExperimentIds));
$experimentEnabled = !Util::getSetting('experiments_disabled') && ($experiments_paid || ( in_array($expNum, $allowedFreeExperimentIds)));
// exception allowed for tests on the metric times
if (strpos($test['testinfo']['url'], 'webpagetest.org/themetrictimes')) {
$experimentEnabled = true;
Expand Down

0 comments on commit 760d04b

Please sign in to comment.