|
@@ 800-809 (lines=10) @@
|
| 797 |
|
if ( ! $this->is_likes_visible() ) |
| 798 |
|
return $content; |
| 799 |
|
|
| 800 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 801 |
|
$blog_id = get_current_blog_id(); |
| 802 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 803 |
|
$domain = $bloginfo->domain; |
| 804 |
|
} else { |
| 805 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 806 |
|
$url = home_url(); |
| 807 |
|
$url_parts = parse_url( $url ); |
| 808 |
|
$domain = $url_parts['host']; |
| 809 |
|
} |
| 810 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 811 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 812 |
|
|
|
@@ 845-854 (lines=10) @@
|
| 842 |
|
if ( is_ssl() ) |
| 843 |
|
$protocol = 'https'; |
| 844 |
|
|
| 845 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 846 |
|
$blog_id = get_current_blog_id(); |
| 847 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 848 |
|
$domain = $bloginfo->domain; |
| 849 |
|
} else { |
| 850 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 851 |
|
$url = home_url(); |
| 852 |
|
$url_parts = parse_url( $url ); |
| 853 |
|
$domain = $url_parts['host']; |
| 854 |
|
} |
| 855 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 856 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 857 |
|
|
|
@@ 884-893 (lines=10) @@
|
| 881 |
|
if ( is_ssl() ) |
| 882 |
|
$protocol = 'https'; |
| 883 |
|
|
| 884 |
|
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
| 885 |
|
$blog_id = get_current_blog_id(); |
| 886 |
|
$bloginfo = get_blog_details( (int) $blog_id ); |
| 887 |
|
$domain = $bloginfo->domain; |
| 888 |
|
} else { |
| 889 |
|
$blog_id = Jetpack_Options::get_option( 'id' ); |
| 890 |
|
$url = home_url(); |
| 891 |
|
$url_parts = parse_url( $url ); |
| 892 |
|
$domain = $url_parts['host']; |
| 893 |
|
} |
| 894 |
|
// make sure to include the scripts before the iframe otherwise weird things happen |
| 895 |
|
add_action( 'wp_footer', array( $this, 'likes_master' ), 21 ); |
| 896 |
|
|