PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 0.9.5
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v0.9.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 / comments-window / bootstrap.php

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

36 lines 1.2 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 Comments Window module bootstrap.
4 *
5 * Replaces the classic `edit-comments.php` iframe with a native
6 * desktop window driven by `<wpd-table>` and core's `/wp/v2/comments`
7 * REST endpoint, behind a per-user opt-in
8 * (`OsSettingsState.nativeCommentsEnabled`, surfaced as the "Use the
9 * native Comments window" toggle in OS Settings → Features).
10 *
11 * Public PHP surface (all filterable):
12 *
13 * - desktop_mode_comments_window_user_can_register
14 * - desktop_mode_comments_window_user_can_use
15 * - desktop_mode_comments_window_args
16 * - desktop_mode_comments_window_template_html
17 * - desktop_mode_comments_window_query_args
18 * - desktop_mode_comments_window_spam_score
19 * - desktop_mode_comments_window_reply_editor
20 *
21 * The URL-remap swap (Comments tile → native window when opt-in is
22 * on) is implemented JS-side in `src/desktop.ts` via
23 * `registerNativeUrlRemap`.
24 *
25 * @package WPDesktopMode
26 * @since 0.8.3
27 */
28
29 defined( 'ABSPATH' ) || exit;
30
31 require_once __DIR__ . '/permissions.php';
32 require_once __DIR__ . '/spam-score.php';
33 require_once __DIR__ . '/ai-moderation.php';
34 require_once __DIR__ . '/window.php';
35 require_once __DIR__ . '/rest.php';
36