secret
Created

#16560 Optimizely test

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
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
+) );

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.