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