@@ 4342-4352 (lines=11) @@ | ||
4339 | self::activate_default_modules( $min_version, $max_version, $other_modules ); |
|
4340 | wp_safe_redirect( self::admin_url( 'page=jetpack' ) ); |
|
4341 | exit; |
|
4342 | case 'disconnect': |
|
4343 | if ( ! current_user_can( 'jetpack_disconnect' ) ) { |
|
4344 | $error = 'cheatin'; |
|
4345 | break; |
|
4346 | } |
|
4347 | ||
4348 | check_admin_referer( 'jetpack-disconnect' ); |
|
4349 | self::log( 'disconnect' ); |
|
4350 | self::disconnect(); |
|
4351 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4352 | exit; |
|
4353 | case 'reconnect': |
|
4354 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4355 | $error = 'cheatin'; |
|
@@ 4353-4363 (lines=11) @@ | ||
4350 | self::disconnect(); |
|
4351 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4352 | exit; |
|
4353 | case 'reconnect': |
|
4354 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4355 | $error = 'cheatin'; |
|
4356 | break; |
|
4357 | } |
|
4358 | ||
4359 | check_admin_referer( 'jetpack-reconnect' ); |
|
4360 | self::log( 'reconnect' ); |
|
4361 | self::disconnect(); |
|
4362 | wp_redirect( $this->build_connect_url( true, false, 'reconnect' ) ); |
|
4363 | exit; |
|
4364 | case 'deactivate': |
|
4365 | if ( ! current_user_can( 'jetpack_deactivate_modules' ) ) { |
|
4366 | $error = 'cheatin'; |