|
@@ 194-203 (lines=10) @@
|
| 191 |
|
|
| 192 |
|
if ( $local_user->exists() ) { |
| 193 |
|
$result = self::passing_test( array( 'name' => $name ) ); |
| 194 |
|
} else { |
| 195 |
|
$result = self::failing_test( |
| 196 |
|
array( |
| 197 |
|
'name' => $name, |
| 198 |
|
'short_description' => __( 'The user who setup the Jetpack connection no longer exists on this site.', 'jetpack' ), |
| 199 |
|
'action_label' => __( 'Please disconnect and reconnect Jetpack.', 'jetpack' ), |
| 200 |
|
'action' => 'https://jetpack.com/support/reconnecting-reinstalling-jetpack/', |
| 201 |
|
) |
| 202 |
|
); |
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
return $result; |
| 206 |
|
} |
|
@@ 229-239 (lines=11) @@
|
| 226 |
|
|
| 227 |
|
if ( user_can( $master_user, 'manage_options' ) ) { |
| 228 |
|
$result = self::passing_test( array( 'name' => $name ) ); |
| 229 |
|
} else { |
| 230 |
|
$result = self::failing_test( |
| 231 |
|
array( |
| 232 |
|
'name' => $name, |
| 233 |
|
/* translators: a WordPress username */ |
| 234 |
|
'short_description' => sprintf( __( 'The user (%s) who setup the Jetpack connection is not an administrator.', 'jetpack' ), $master_user->user_login ), |
| 235 |
|
'action_label' => __( 'Either upgrade the user or disconnect and reconnect Jetpack.', 'jetpack' ), |
| 236 |
|
'action' => 'https://jetpack.com/support/reconnecting-reinstalling-jetpack/', |
| 237 |
|
) |
| 238 |
|
); |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
return $result; |
| 242 |
|
} |