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