|
@@ 783-792 (lines=10) @@
|
| 780 |
|
if ( ! $this->is_likes_visible() ) |
| 781 |
|
return $content; |
| 782 |
|
|
| 783 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 784 |
|
$blog_id = get_current_blog_id(); |
| 785 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 786 |
|
$domain = $bloginfo->domain; |
| 787 |
|
} else { |
| 788 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 789 |
|
$url = home_url(); |
| 790 |
|
$url_parts = parse_url( $url ); |
| 791 |
|
$domain = $url_parts['host']; |
| 792 |
|
} |
| 793 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 794 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 795 |
|
|
|
@@ 828-837 (lines=10) @@
|
| 825 |
|
if ( is_ssl() ) |
| 826 |
|
$protocol = 'https'; |
| 827 |
|
|
| 828 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 829 |
|
$blog_id = get_current_blog_id(); |
| 830 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 831 |
|
$domain = $bloginfo->domain; |
| 832 |
|
} else { |
| 833 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 834 |
|
$url = home_url(); |
| 835 |
|
$url_parts = parse_url( $url ); |
| 836 |
|
$domain = $url_parts['host']; |
| 837 |
|
} |
| 838 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 839 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 840 |
|
|
|
@@ 867-876 (lines=10) @@
|
| 864 |
|
if ( is_ssl() ) |
| 865 |
|
$protocol = 'https'; |
| 866 |
|
|
| 867 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 868 |
|
$blog_id = get_current_blog_id(); |
| 869 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 870 |
|
$domain = $bloginfo->domain; |
| 871 |
|
} else { |
| 872 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 873 |
|
$url = home_url(); |
| 874 |
|
$url_parts = parse_url( $url ); |
| 875 |
|
$domain = $url_parts['host']; |
| 876 |
|
} |
| 877 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 878 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 879 |
|
|