_inc/lib/class-jetpack-tweetstorm-helper.php 1 location
|
@@ 69-80 (lines=12) @@
|
66 |
|
* |
67 |
|
* @return mixed |
68 |
|
*/ |
69 |
|
public static function get_site_id() { |
70 |
|
$is_wpcom = ( defined( 'IS_WPCOM' ) && IS_WPCOM ); |
71 |
|
$site_id = $is_wpcom ? get_current_blog_id() : Jetpack_Options::get_option( 'id' ); |
72 |
|
if ( ! $site_id ) { |
73 |
|
return new WP_Error( |
74 |
|
'unavailable_site_id', |
75 |
|
__( 'Sorry, something is wrong with your Jetpack connection.', 'jetpack' ), |
76 |
|
403 |
77 |
|
); |
78 |
|
} |
79 |
|
return (int) $site_id; |
80 |
|
} |
81 |
|
} |
82 |
|
|
_inc/lib/class-jetpack-instagram-gallery-helper.php 1 location
|
@@ 84-95 (lines=12) @@
|
81 |
|
* |
82 |
|
* @return mixed |
83 |
|
*/ |
84 |
|
public static function get_site_id() { |
85 |
|
$is_wpcom = ( defined( 'IS_WPCOM' ) && IS_WPCOM ); |
86 |
|
$site_id = $is_wpcom ? get_current_blog_id() : Jetpack_Options::get_option( 'id' ); |
87 |
|
if ( ! $site_id ) { |
88 |
|
return new WP_Error( |
89 |
|
'unavailable_site_id', |
90 |
|
__( 'Sorry, something is wrong with your Jetpack connection.', 'jetpack' ), |
91 |
|
403 |
92 |
|
); |
93 |
|
} |
94 |
|
return (int) $site_id; |
95 |
|
} |
96 |
|
} |
97 |
|
|