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