|
@@ 433-442 (lines=10) @@
|
| 430 |
|
if ( ! is_numeric( $post_id ) || ! $this->settings->is_likes_visible() ) |
| 431 |
|
return $content; |
| 432 |
|
|
| 433 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 434 |
|
$blog_id = get_current_blog_id(); |
| 435 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 436 |
|
$domain = $bloginfo->domain; |
| 437 |
|
} else { |
| 438 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 439 |
|
$url = home_url(); |
| 440 |
|
$url_parts = parse_url( $url ); |
| 441 |
|
$domain = $url_parts['host']; |
| 442 |
|
} |
| 443 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 444 |
|
add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 ); |
| 445 |
|
|
|
@@ 518-527 (lines=10) @@
|
| 515 |
|
if ( is_ssl() ) |
| 516 |
|
$protocol = 'https'; |
| 517 |
|
|
| 518 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 519 |
|
$blog_id = get_current_blog_id(); |
| 520 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 521 |
|
$domain = $bloginfo->domain; |
| 522 |
|
} else { |
| 523 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 524 |
|
$url = home_url(); |
| 525 |
|
$url_parts = parse_url( $url ); |
| 526 |
|
$domain = $url_parts['host']; |
| 527 |
|
} |
| 528 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 529 |
|
add_action( 'wp_footer', 'jetpack_likes_master_iframe', 21 ); |
| 530 |
|
|