| @@ -396,8 +396,34 @@ | ||
| 396 | 396 | $built_version( 'assets/js/iframe-bridge' . $suffix . '.js' ), |
| 397 | 397 | true |
| 398 | 398 | ); |
| 399 | 399 | |
| 400 | + // `os-deactivation-feedback` — the dialog that asks one optional | |
| 401 | + // question when an admin deactivates OpenStation. Enqueued on | |
| 402 | + // `plugins.php` (classic, chromeless and network admin) by | |
| 403 | + // `includes/feedback/deactivation.php`, and lazy-loaded by the | |
| 404 | + // native Plugins app from its config block. Plain DOM on purpose: | |
| 405 | + // the classic screen has no `<os-*>` kit. | |
| 406 | + wp_register_script( | |
| 407 | + 'os-deactivation-feedback', | |
| 408 | + OPENSTATION_URL . 'assets/js/deactivation-feedback' . $suffix . '.js', | |
| 409 | + array( 'wp-i18n' ), | |
| 410 | + $built_version( 'assets/js/deactivation-feedback' . $suffix . '.js' ), | |
| 411 | + true | |
| 412 | + ); | |
| 413 | + wp_set_script_translations( | |
| 414 | + 'os-deactivation-feedback', | |
| 415 | + 'desktop-mode', | |
| 416 | + OPENSTATION_DIR . 'languages' | |
| 417 | + ); | |
| 418 | + $feedback_css = OPENSTATION_DIR . 'assets/css/deactivation-feedback.css'; | |
| 419 | + wp_register_style( | |
| 420 | + 'os-deactivation-feedback', | |
| 421 | + OPENSTATION_URL . 'assets/css/deactivation-feedback.css', | |
| 422 | + array(), | |
| 423 | + file_exists( $feedback_css ) ? (string) filemtime( $feedback_css ) : $version | |
| 424 | + ); | |
| 425 | + | |
| 400 | 426 | // `os-chromeless-bridge` — the iframe side of every window, |
| 401 | 427 | // enqueued on `admin_footer` by |
| 402 | 428 | // `openstation_chromeless_bridge_script()` with its per-request |
| 403 | 429 | // data attached as a `before` inline block. Registered here (not |