_inc/lib/class-jetpack-instagram-gallery-helper.php 1 location
|
@@ 125-136 (lines=12) @@
|
122 |
|
* |
123 |
|
* @return mixed |
124 |
|
*/ |
125 |
|
public static function get_site_id() { |
126 |
|
$is_wpcom = ( defined( 'IS_WPCOM' ) && IS_WPCOM ); |
127 |
|
$site_id = $is_wpcom ? get_current_blog_id() : Jetpack_Options::get_option( 'id' ); |
128 |
|
if ( ! $site_id ) { |
129 |
|
return new WP_Error( |
130 |
|
'unavailable_site_id', |
131 |
|
__( 'Sorry, something is wrong with your Jetpack connection.', 'jetpack' ), |
132 |
|
403 |
133 |
|
); |
134 |
|
} |
135 |
|
return (int) $site_id; |
136 |
|
} |
137 |
|
} |
138 |
|
|
_inc/lib/class-jetpack-tweetstorm-helper.php 1 location
|
@@ 1624-1635 (lines=12) @@
|
1621 |
|
* |
1622 |
|
* @return mixed |
1623 |
|
*/ |
1624 |
|
public static function get_site_id() { |
1625 |
|
$is_wpcom = ( defined( 'IS_WPCOM' ) && IS_WPCOM ); |
1626 |
|
$site_id = $is_wpcom ? get_current_blog_id() : Jetpack_Options::get_option( 'id' ); |
1627 |
|
if ( ! $site_id ) { |
1628 |
|
return new WP_Error( |
1629 |
|
'unavailable_site_id', |
1630 |
|
__( 'Sorry, something is wrong with your Jetpack connection.', 'jetpack' ), |
1631 |
|
403 |
1632 |
|
); |
1633 |
|
} |
1634 |
|
return (int) $site_id; |
1635 |
|
} |
1636 |
|
} |
1637 |
|
|