@@ 4157-4167 (lines=11) @@ | ||
4154 | self::activate_default_modules( $min_version, $max_version, $other_modules ); |
|
4155 | wp_safe_redirect( self::admin_url( 'page=jetpack' ) ); |
|
4156 | exit; |
|
4157 | case 'disconnect': |
|
4158 | if ( ! current_user_can( 'jetpack_disconnect' ) ) { |
|
4159 | $error = 'cheatin'; |
|
4160 | break; |
|
4161 | } |
|
4162 | ||
4163 | check_admin_referer( 'jetpack-disconnect' ); |
|
4164 | self::log( 'disconnect' ); |
|
4165 | self::disconnect(); |
|
4166 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4167 | exit; |
|
4168 | case 'reconnect': |
|
4169 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4170 | $error = 'cheatin'; |
|
@@ 4168-4178 (lines=11) @@ | ||
4165 | self::disconnect(); |
|
4166 | wp_safe_redirect( self::admin_url( 'disconnected=true' ) ); |
|
4167 | exit; |
|
4168 | case 'reconnect': |
|
4169 | if ( ! current_user_can( 'jetpack_reconnect' ) ) { |
|
4170 | $error = 'cheatin'; |
|
4171 | break; |
|
4172 | } |
|
4173 | ||
4174 | check_admin_referer( 'jetpack-reconnect' ); |
|
4175 | self::log( 'reconnect' ); |
|
4176 | self::disconnect(); |
|
4177 | wp_redirect( $this->build_connect_url( true, false, 'reconnect' ) ); |
|
4178 | exit; |
|
4179 | case 'deactivate': |
|
4180 | if ( ! current_user_can( 'jetpack_deactivate_modules' ) ) { |
|
4181 | $error = 'cheatin'; |