@@ 4458-4468 (lines=11) @@ | ||
4455 | self::activate_default_modules( $min_version, $max_version, $other_modules ); |
|
4456 | wp_safe_redirect( self::admin_url( 'page=jetpack' ) ); |
|
4457 | exit; |
|
4458 | case 'disconnect': |
|
4459 | if ( ! current_user_can( 'jetpack_disconnect' ) ) { |
|
4460 | $error = 'cheatin'; |
|
4461 | break; |
|
4462 | } |
|
4463 | ||
4464 | check_admin_referer( 'jetpack-disconnect' ); |
|
4465 | self::log( 'disconnect' ); |
|
4466 | self::disconnect(); |
|
4467 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4468 | exit; |
|
4469 | case 'reconnect': |
|
4470 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4471 | $error = 'cheatin'; |
|
@@ 4469-4479 (lines=11) @@ | ||
4466 | self::disconnect(); |
|
4467 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4468 | exit; |
|
4469 | case 'reconnect': |
|
4470 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4471 | $error = 'cheatin'; |
|
4472 | break; |
|
4473 | } |
|
4474 | ||
4475 | check_admin_referer( 'jetpack-reconnect' ); |
|
4476 | self::log( 'reconnect' ); |
|
4477 | self::disconnect(); |
|
4478 | wp_redirect( $this->build_connect_url( true, false, 'reconnect' ) ); |
|
4479 | exit; |
|
4480 | case 'deactivate': |
|
4481 | if ( ! current_user_can( 'jetpack_deactivate_modules' ) ) { |
|
4482 | $error = 'cheatin'; |