@@ 4488-4498 (lines=11) @@ | ||
4485 | self::activate_default_modules( $min_version, $max_version, $other_modules ); |
|
4486 | wp_safe_redirect( self::admin_url( 'page=jetpack' ) ); |
|
4487 | exit; |
|
4488 | case 'disconnect': |
|
4489 | if ( ! current_user_can( 'jetpack_disconnect' ) ) { |
|
4490 | $error = 'cheatin'; |
|
4491 | break; |
|
4492 | } |
|
4493 | ||
4494 | check_admin_referer( 'jetpack-disconnect' ); |
|
4495 | self::log( 'disconnect' ); |
|
4496 | self::disconnect(); |
|
4497 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4498 | exit; |
|
4499 | case 'reconnect': |
|
4500 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4501 | $error = 'cheatin'; |
|
@@ 4499-4509 (lines=11) @@ | ||
4496 | self::disconnect(); |
|
4497 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4498 | exit; |
|
4499 | case 'reconnect': |
|
4500 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4501 | $error = 'cheatin'; |
|
4502 | break; |
|
4503 | } |
|
4504 | ||
4505 | check_admin_referer( 'jetpack-reconnect' ); |
|
4506 | self::log( 'reconnect' ); |
|
4507 | self::disconnect(); |
|
4508 | wp_redirect( $this->build_connect_url( true, false, 'reconnect' ) ); |
|
4509 | exit; |
|
4510 | case 'deactivate': |
|
4511 | if ( ! current_user_can( 'jetpack_deactivate_modules' ) ) { |
|
4512 | $error = 'cheatin'; |