@@ 4435-4445 (lines=11) @@ | ||
4432 | self::activate_default_modules( $min_version, $max_version, $other_modules ); |
|
4433 | wp_safe_redirect( self::admin_url( 'page=jetpack' ) ); |
|
4434 | exit; |
|
4435 | case 'disconnect': |
|
4436 | if ( ! current_user_can( 'jetpack_disconnect' ) ) { |
|
4437 | $error = 'cheatin'; |
|
4438 | break; |
|
4439 | } |
|
4440 | ||
4441 | check_admin_referer( 'jetpack-disconnect' ); |
|
4442 | self::log( 'disconnect' ); |
|
4443 | self::disconnect(); |
|
4444 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4445 | exit; |
|
4446 | case 'reconnect': |
|
4447 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4448 | $error = 'cheatin'; |
|
@@ 4446-4456 (lines=11) @@ | ||
4443 | self::disconnect(); |
|
4444 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4445 | exit; |
|
4446 | case 'reconnect': |
|
4447 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4448 | $error = 'cheatin'; |
|
4449 | break; |
|
4450 | } |
|
4451 | ||
4452 | check_admin_referer( 'jetpack-reconnect' ); |
|
4453 | self::log( 'reconnect' ); |
|
4454 | self::disconnect(); |
|
4455 | wp_redirect( $this->build_connect_url( true, false, 'reconnect' ) ); |
|
4456 | exit; |
|
4457 | case 'deactivate': |
|
4458 | if ( ! current_user_can( 'jetpack_deactivate_modules' ) ) { |
|
4459 | $error = 'cheatin'; |