PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.5
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.5
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 1.1.5, at includes/plugins-window/bootstrap.php

43 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * OpenStation — 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 `<os-flyout>`, install by
9 * slug, upload .zip, drag-drop a .zip onto the window).
10 *
11 * Public PHP surface (all filterable):
12 *
13 * - openstation_plugins_window_user_can_register
14 * - openstation_plugins_window_user_can_use
15 * - openstation_plugins_window_args
16 * - openstation_plugins_window_template_html
17 * - openstation_plugins_window_browse_args
18 * - openstation_plugins_window_browse_response
19 * - openstation_plugins_window_info_response
20 * - openstation_plugins_window_review_parser
21 *
22 * The dock-side swap (Plugins tile → native window when opt-in is on)
23 * is implemented JS-side in `src/desktop.ts` via
24 * `registerNativeUrlRemap` — this module owns only the window itself,
25 * not the entry point.
26 *
27 * Plugin Check posture: NEVER `require_once ABSPATH . 'wp-admin/…'`.
28 * Anything that needs admin-only classes (`Plugin_Upgrader`,
29 * `WP_Filesystem`, `plugins_api`) lives on `admin-ajax.php`
30 * (`includes/plugins-window/ajax.php`) where those files are already
31 * loaded. Pure data enrichment lives on REST field decorators
32 * (`includes/plugins-window/rest-fields.php`).
33 *
34 * @package OpenStation
35 */
36
37 defined( 'ABSPATH' ) || exit;
38
39 require_once __DIR__ . '/permissions.php';
40 require_once __DIR__ . '/window.php';
41 require_once __DIR__ . '/rest-fields.php';
42 require_once __DIR__ . '/ajax.php';
43