Skip to content

Instantly share code, notes, and snippets.

@evansolomon
Created March 28, 2012 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evansolomon/8c4ae177a258bbf345ac to your computer and use it in GitHub Desktop.
Save evansolomon/8c4ae177a258bbf345ac to your computer and use it in GitHub Desktop.
#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