-
-
Save evansolomon/8c4ae177a258bbf345ac to your computer and use it in GitHub Desktop.
#16560 Optimizely test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/optimizely.php b/optimizely.php | |
index 7f26373..06f6b98 100644 | |
--- a/optimizely.php | |
+++ b/optimizely.php | |
@@ -16,8 +16,7 @@ class WPCOM_Optimizely { | |
$this->version = $version; | |
// Generate project JavaScript URL | |
- $scheme = is_ssl() ? 'https' : 'http'; | |
- $this->url = "{$scheme}://cdn.optimizely.com/js/{$project_id}.js"; | |
+ $this->url = "//cdn.optimizely.com/js/{$project_id}.js"; | |
add_filter( 'optimizely_maybe_experiment', array( $this, 'checks' ), 10, 3 ); | |
@@ -195,4 +194,4 @@ function optimizely_experiment( $slug, $args = array() ) { | |
*/ | |
optimizely_experiment( 'fake_test', array( | |
'actions' => array( 'load-themes.php', 'load-post-new.php' ), | |
-) ); | |
\ No newline at end of file | |
+) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment