|
@@ 80-85 (lines=6) @@
|
| 77 |
|
$is_jetpack = true === apply_filters( 'is_jetpack_site', false, $blog_id ); |
| 78 |
|
$site_url = get_option( 'siteurl' ); |
| 79 |
|
|
| 80 |
|
if ( $is_jetpack ) { |
| 81 |
|
remove_filter( 'option_stylesheet', 'fix_theme_location' ); |
| 82 |
|
if ( 'https' !== parse_url( $site_url, PHP_URL_SCHEME ) ) { |
| 83 |
|
add_filter( 'set_url_scheme', array( $this, 'force_http' ), 10, 3 ); |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
foreach ( array_keys( $response_format ) as $key ) { |
| 87 |
|
|
| 88 |
|
// refactoring to change parameter to locale in 1.2 |
|
@@ 446-448 (lines=3) @@
|
| 443 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 444 |
|
add_filter( 'option_stylesheet', 'fix_theme_location' ); |
| 445 |
|
} |
| 446 |
|
if ( 'https' !== parse_url( $site_url, PHP_URL_SCHEME ) ) { |
| 447 |
|
remove_filter( 'set_url_scheme', array( $this, 'force_http' ), 10, 3 ); |
| 448 |
|
} |
| 449 |
|
} |
| 450 |
|
|
| 451 |
|
return $response; |