summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-functions.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-functions.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-functions.php b/plugins/jetpack/sync/class.jetpack-sync-functions.php
index 1ef3f11e..89a70642 100644
--- a/plugins/jetpack/sync/class.jetpack-sync-functions.php
+++ b/plugins/jetpack/sync/class.jetpack-sync-functions.php
@@ -206,8 +206,11 @@ class Jetpack_Sync_Functions {
if ( ! $parsed_url ) {
return $new_value;
}
-
- $scheme = $parsed_url['scheme'];
+ if ( array_key_exists ( 'scheme' , $parsed_url ) ) {
+ $scheme = $parsed_url['scheme'];
+ } else {
+ $scheme = '';
+ }
$scheme_history = get_option( $option_key, array() );
$scheme_history[] = $scheme;