|
@@ 767-776 (lines=10) @@
|
| 764 |
|
if ( ! $this->is_likes_visible() ) |
| 765 |
|
return $content; |
| 766 |
|
|
| 767 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 768 |
|
$blog_id = get_current_blog_id(); |
| 769 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 770 |
|
$domain = $bloginfo->domain; |
| 771 |
|
} else { |
| 772 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 773 |
|
$url = home_url(); |
| 774 |
|
$url_parts = parse_url( $url ); |
| 775 |
|
$domain = $url_parts['host']; |
| 776 |
|
} |
| 777 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 778 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 779 |
|
|
|
@@ 812-821 (lines=10) @@
|
| 809 |
|
if ( is_ssl() ) |
| 810 |
|
$protocol = 'https'; |
| 811 |
|
|
| 812 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 813 |
|
$blog_id = get_current_blog_id(); |
| 814 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 815 |
|
$domain = $bloginfo->domain; |
| 816 |
|
} else { |
| 817 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 818 |
|
$url = home_url(); |
| 819 |
|
$url_parts = parse_url( $url ); |
| 820 |
|
$domain = $url_parts['host']; |
| 821 |
|
} |
| 822 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 823 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 824 |
|
|
|
@@ 851-860 (lines=10) @@
|
| 848 |
|
if ( is_ssl() ) |
| 849 |
|
$protocol = 'https'; |
| 850 |
|
|
| 851 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 852 |
|
$blog_id = get_current_blog_id(); |
| 853 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 854 |
|
$domain = $bloginfo->domain; |
| 855 |
|
} else { |
| 856 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 857 |
|
$url = home_url(); |
| 858 |
|
$url_parts = parse_url( $url ); |
| 859 |
|
$domain = $url_parts['host']; |
| 860 |
|
} |
| 861 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 862 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 863 |
|
|