Skip to content

@evansolomon /gist:8c4ae177a258bbf345ac secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
#16560 Optimizely test
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
Something went wrong with that request. Please try again.