| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | if ( ! empty( $_GET['disconnect'] ) ) { |
| 28 | 28 | if ( Jetpack::is_connection_ready() ) { |
| 29 | 29 | Jetpack::disconnect(); |
| 30 | 30 | wp_safe_redirect( Jetpack::admin_url() ); |
| 31 | - exit; | |
| 31 | + exit( 0 ); | |
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | $support_url = Jetpack::is_development_version() |
| 45 | 45 | ? Redirect::get_url( 'jetpack-contact-support-beta-group' ) |
| 46 | 46 | : Redirect::get_url( 'jetpack-contact-support' ); |
| 47 | 47 | |
| 48 | - $cxntests = new Jetpack_Cxn_Tests(); | |
| 48 | + $cxntests = new Automattic\Jetpack\Connection\Connection_Health_Tests(); | |
| 49 | 49 | ?> |
| 50 | 50 | <div class="wrap"> |
| 51 | 51 | <div class="jp-static-block"> |
| 52 | 52 | <h2><?php esc_html_e( 'Debugging Center', 'jetpack' ); ?></h2> |
| @@ -262,8 +262,13 @@ | ||
| 262 | 262 | * Outputs html needed within the <head> for the in-plugin debugger page. |
| 263 | 263 | */ |
| 264 | 264 | public static function jetpack_debug_admin_head() { |
| 265 | 265 | |
| 266 | + $min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; | |
| 267 | + wp_enqueue_style( 'jetpack-admin', plugins_url( "css/jetpack-admin{$min}.css", JETPACK__PLUGIN_FILE ), array( 'genericons', 'jetpack-connection' ), JETPACK__VERSION . '-20121016' ); | |
| 268 | + wp_style_add_data( 'jetpack-admin', 'rtl', 'replace' ); | |
| 269 | + wp_style_add_data( 'jetpack-admin', 'suffix', $min ); | |
| 270 | + | |
| 266 | 271 | Jetpack_Admin_Page::load_wrapper_styles(); |
| 267 | 272 | ?> |
| 268 | 273 | <style type="text/css"> |
| 269 | 274 | |
| @@ -291,11 +296,10 @@ | ||
| 291 | 296 | margin: 0 0 25px 0; |
| 292 | 297 | } |
| 293 | 298 | |
| 294 | 299 | .formbox input[type="text"], .formbox input[type="email"], .formbox input[type="url"], .formbox textarea, #debug_info_div { |
| 295 | - border: 1px solid #dcdcde; | |
| 296 | - border-radius: 11px; | |
| 297 | - box-shadow: inset 0 1px 1px rgba(0,0,0,0.1); | |
| 300 | + border: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #e4e4e4); | |
| 301 | + border-radius: var(--wpds-border-radius-md, 4px); | |
| 298 | 302 | color: #646970; |
| 299 | 303 | font-size: 14px; |
| 300 | 304 | padding: 10px; |
| 301 | 305 | width: 97%; |
| @@ -300,11 +304,11 @@ | ||
| 300 | 304 | padding: 10px; |
| 301 | 305 | width: 97%; |
| 302 | 306 | } |
| 303 | 307 | #debug_info_div { |
| 304 | - border-radius: 0; | |
| 308 | + border-radius: var(--wpds-border-radius-lg, 8px); | |
| 305 | 309 | margin-top: 16px; |
| 306 | - background: #FFF; | |
| 310 | + background: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 307 | 311 | padding: 16px; |
| 308 | 312 | } |
| 309 | 313 | .formbox .contact-support input[type="submit"] { |
| 310 | 314 | float: right; |