PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 0.9.2
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v0.9.2
1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 0.8.8 0.8.7 All 34 releases
desktop-mode / includes / plugins-window / bootstrap.php

bootstrap.php in OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin 0.9.2, at includes/plugins-window/bootstrap.php

45 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Desktop Mode — Native Plugins Window module bootstrap.
4 *
5 * Replaces the chromeless `plugins.php` + `plugin-install.php` iframes
6 * with a single native window containing two tabs: an Installed list
7 * (manage activations + updates + delete) and a Browse gallery
8 * (explore wp.org, view rich detail in a `<wpd-flyout>`, install by
9 * slug, upload .zip, drag-drop a .zip onto the window).
10 *
11 * Public PHP surface (all filterable):
12 *
13 * - desktop_mode_plugins_window_user_can_register
14 * - desktop_mode_plugins_window_user_can_use
15 * - desktop_mode_plugins_window_args
16 * - desktop_mode_plugins_window_template_html
17 * - desktop_mode_plugins_window_browse_args
18 * - desktop_mode_plugins_window_browse_response
19 * - desktop_mode_plugins_window_info_response
20 * - desktop_mode_plugins_window_review_parser
21 * - desktop_mode_plugins_window_card_extras
22 *
23 * The dock-side swap (Plugins tile → native window when opt-in is on)
24 * is implemented JS-side in `src/desktop.ts` via
25 * `registerNativeUrlRemap` — this module owns only the window itself,
26 * not the entry point.
27 *
28 * Plugin Check posture: NEVER `require_once ABSPATH . 'wp-admin/…'`.
29 * Anything that needs admin-only classes (`Plugin_Upgrader`,
30 * `WP_Filesystem`, `plugins_api`) lives on `admin-ajax.php`
31 * (`includes/plugins-window/ajax.php`) where those files are already
32 * loaded. Pure data enrichment lives on REST field decorators
33 * (`includes/plugins-window/rest-fields.php`).
34 *
35 * @package WPDesktopMode
36 * @since 0.9.0
37 */
38
39 defined( 'ABSPATH' ) || exit;
40
41 require_once __DIR__ . '/permissions.php';
42 require_once __DIR__ . '/window.php';
43 require_once __DIR__ . '/rest-fields.php';
44 require_once __DIR__ . '/ajax.php';
45