@@ 4416-4426 (lines=11) @@ | ||
4413 | self::activate_default_modules( $min_version, $max_version, $other_modules ); |
|
4414 | wp_safe_redirect( self::admin_url( 'page=jetpack' ) ); |
|
4415 | exit; |
|
4416 | case 'disconnect': |
|
4417 | if ( ! current_user_can( 'jetpack_disconnect' ) ) { |
|
4418 | $error = 'cheatin'; |
|
4419 | break; |
|
4420 | } |
|
4421 | ||
4422 | check_admin_referer( 'jetpack-disconnect' ); |
|
4423 | self::log( 'disconnect' ); |
|
4424 | self::disconnect(); |
|
4425 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4426 | exit; |
|
4427 | case 'reconnect': |
|
4428 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4429 | $error = 'cheatin'; |
|
@@ 4427-4437 (lines=11) @@ | ||
4424 | self::disconnect(); |
|
4425 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4426 | exit; |
|
4427 | case 'reconnect': |
|
4428 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4429 | $error = 'cheatin'; |
|
4430 | break; |
|
4431 | } |
|
4432 | ||
4433 | check_admin_referer( 'jetpack-reconnect' ); |
|
4434 | self::log( 'reconnect' ); |
|
4435 | self::disconnect(); |
|
4436 | wp_redirect( $this->build_connect_url( true, false, 'reconnect' ) ); |
|
4437 | exit; |
|
4438 | case 'deactivate': |
|
4439 | if ( ! current_user_can( 'jetpack_deactivate_modules' ) ) { |
|
4440 | $error = 'cheatin'; |