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