|
@@ 90-95 (lines=6) @@
|
| 87 |
|
$is_jetpack = true === apply_filters( 'is_jetpack_site', false, $blog_id ); |
| 88 |
|
$site_url = get_option( 'siteurl' ); |
| 89 |
|
|
| 90 |
|
if ( $is_jetpack ) { |
| 91 |
|
remove_filter( 'option_stylesheet', 'fix_theme_location' ); |
| 92 |
|
if ( 'https' !== parse_url( $site_url, PHP_URL_SCHEME ) ) { |
| 93 |
|
add_filter( 'set_url_scheme', array( $this, 'force_http' ), 10, 3 ); |
| 94 |
|
} |
| 95 |
|
} |
| 96 |
|
foreach ( array_keys( $response_format ) as $key ) { |
| 97 |
|
|
| 98 |
|
// refactoring to change parameter to locale in 1.2 |
|
@@ 456-458 (lines=3) @@
|
| 453 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 454 |
|
add_filter( 'option_stylesheet', 'fix_theme_location' ); |
| 455 |
|
} |
| 456 |
|
if ( 'https' !== parse_url( $site_url, PHP_URL_SCHEME ) ) { |
| 457 |
|
remove_filter( 'set_url_scheme', array( $this, 'force_http' ), 10, 3 ); |
| 458 |
|
} |
| 459 |
|
} |
| 460 |
|
|
| 461 |
|
return $response; |