@@ 1114-1116 (lines=3) @@ | ||
1111 | public function partner_cancel( $args, $named_args ) { |
|
1112 | list( $token_json ) = $args; |
|
1113 | ||
1114 | if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) { |
|
1115 | /* translators: %s is the invalid JSON string */ |
|
1116 | $this->partner_provision_error( new WP_Error( 'missing_access_token', sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) ); |
|
1117 | } |
|
1118 | ||
1119 | if ( isset( $token->error ) ) { |
|
@@ 1206-1208 (lines=3) @@ | ||
1203 | public function partner_provision( $args, $named_args ) { |
|
1204 | list( $token_json ) = $args; |
|
1205 | ||
1206 | if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) { |
|
1207 | /* translators: %s is the invalid JSON string */ |
|
1208 | $this->partner_provision_error( new WP_Error( 'missing_access_token', sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) ); |
|
1209 | } |
|
1210 | ||
1211 | if ( isset( $token->error ) ) { |