@@ -147,6 +147,9 @@ discard block |
||
| 147 | 147 | return $data; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | + /** |
|
| 151 | + * @param string $path |
|
| 152 | + */ |
|
| 150 | 153 | private function wpcom_json_api_request_as_blog( $path, $version = 1, $args = array(), $body = null, $base_api_path = 'rest' ) { |
| 151 | 154 | if ( ! class_exists( 'Jetpack_Client' ) ) { |
| 152 | 155 | return new WP_Error( 'missing_jetpack', 'The `Jetpack_Client` class is missing' ); |
@@ -262,6 +265,9 @@ discard block |
||
| 262 | 265 | return $url; |
| 263 | 266 | } |
| 264 | 267 | |
| 268 | + /** |
|
| 269 | + * @return boolean |
|
| 270 | + */ |
|
| 265 | 271 | private function is_legacy_token( $token_id ) { |
| 266 | 272 | $site = Jetpack_Options::get_option( 'id' ); |
| 267 | 273 | $path = sprintf( '/sites/%s/instagram/%s/check-legacy', $site, $token_id ); |