@@ -279,6 +279,9 @@ discard block |
||
279 | 279 | $listener->get_full_sync_queue()->reset(); |
280 | 280 | } |
281 | 281 | |
282 | + /** |
|
283 | + * @param integer $default |
|
284 | + */ |
|
282 | 285 | private function get_status_option( $name, $default = null ) { |
283 | 286 | $prefix = self::STATUS_OPTION_PREFIX; |
284 | 287 | |
@@ -313,6 +316,9 @@ discard block |
||
313 | 316 | return $this->read_option( 'jetpack_sync_full_config' ); |
314 | 317 | } |
315 | 318 | |
319 | + /** |
|
320 | + * @param string $name |
|
321 | + */ |
|
316 | 322 | private function write_option( $name, $value ) { |
317 | 323 | // we write our own option updating code to bypass filters/caching/etc on set_option/get_option |
318 | 324 | global $wpdb; |
@@ -340,6 +346,9 @@ discard block |
||
340 | 346 | return $updated_num; |
341 | 347 | } |
342 | 348 | |
349 | + /** |
|
350 | + * @param string $name |
|
351 | + */ |
|
343 | 352 | private function read_option( $name, $default = null ) { |
344 | 353 | global $wpdb; |
345 | 354 | $value = $wpdb->get_var( |
@@ -107,6 +107,10 @@ discard block |
||
107 | 107 | public static function main_network_site_url() { |
108 | 108 | return self::preserve_scheme( 'siteurl', 'network_site_url', false ); |
109 | 109 | } |
110 | + |
|
111 | + /** |
|
112 | + * @return string |
|
113 | + */ |
|
110 | 114 | private static function raw__url( $option ) { |
111 | 115 | global $wpdb; |
112 | 116 | switch( $option ) { |
@@ -124,6 +128,10 @@ discard block |
||
124 | 128 | } |
125 | 129 | } |
126 | 130 | |
131 | + /** |
|
132 | + * @param string $option |
|
133 | + * @param string $url_function |
|
134 | + */ |
|
127 | 135 | public static function preserve_scheme( $option, $url_function, $normalize_www = false ) { |
128 | 136 | $previous_https_value = isset( $_SERVER['HTTPS'] ) ? $_SERVER['HTTPS'] : null; |
129 | 137 | $_SERVER['HTTPS'] = 'off'; |