|
@@ 188-193 (lines=6) @@
|
| 185 |
|
$user_token = \Jetpack_Data::get_access_token( $user_id ); |
| 186 |
|
|
| 187 |
|
$tokenset = ''; |
| 188 |
|
if ( $blog_token ) { |
| 189 |
|
$tokenset = 'Blog '; |
| 190 |
|
$blog_key = substr( $blog_token->secret, 0, strpos( $blog_token->secret, '.' ) ); |
| 191 |
|
// Intentionally not translated since this is helpful when sent to Happiness. |
| 192 |
|
$blog_key = ( $blog_key ) ? $blog_key : 'Potentially Malformed Token.'; |
| 193 |
|
} |
| 194 |
|
if ( $user_token ) { |
| 195 |
|
$tokenset .= 'User'; |
| 196 |
|
$user_key = substr( $user_token->secret, 0, strpos( $user_token->secret, '.' ) ); |
|
@@ 194-199 (lines=6) @@
|
| 191 |
|
// Intentionally not translated since this is helpful when sent to Happiness. |
| 192 |
|
$blog_key = ( $blog_key ) ? $blog_key : 'Potentially Malformed Token.'; |
| 193 |
|
} |
| 194 |
|
if ( $user_token ) { |
| 195 |
|
$tokenset .= 'User'; |
| 196 |
|
$user_key = substr( $user_token->secret, 0, strpos( $user_token->secret, '.' ) ); |
| 197 |
|
// Intentionally not translated since this is helpful when sent to Happiness. |
| 198 |
|
$user_key = ( $user_key ) ? $user_key : 'Potentially Malformed Token.'; |
| 199 |
|
} |
| 200 |
|
if ( ! $tokenset ) { |
| 201 |
|
$tokenset = 'None'; |
| 202 |
|
} |