PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.10
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.10
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
← All changes | includes/games/bootstrap.php +21 -21 0.9.81.1.10 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2 /**
3 - * Desktop Mode — Games bootstrap.
3 + * OpenStation — Games bootstrap.
4 4 *
5 5 * Loads the game system: schema (scores + challenges tables), the
6 6 * framework config (shared dictionary URL), the server-side
7 7 * game registry, the score/challenge store, the play-time store,
@@ -15,20 +15,20 @@
15 15 * the module files load — no tables check on `init`, no REST routes,
16 16 * no Heartbeat channel, no window/icon — so the games framework costs
17 17 * nothing beyond the option read below.
18 18 * For third-party plugins the disabled state is indistinguishable from
19 - * Desktop Mode not being active: `desktop_mode_register_game()` is
19 + * OpenStation not being active: `openstation_register_game()` is
20 20 * undefined, which the documented `function_exists()` guard already
21 21 * handles (see docs/examples/register-game.md).
22 22 *
23 23 * Loading is deferred to `plugins_loaded` (priority 5) so any regular
24 - * plugin can hook the `desktop_mode_games_enabled` filter in time to
24 + * plugin can hook the `openstation_games_enabled` filter in time to
25 25 * influence the decision.
26 26 *
27 27 * New `require_once` lines belong in the loader below so the rest of
28 28 * the codebase keeps loading the feature through one entry point.
29 29 *
30 - * @package WPDesktopMode
30 + * @package OpenStation
31 31 */
32 32
33 33 defined( 'ABSPATH' ) || exit;
34 34
@@ -35,14 +35,14 @@
35 35 /**
36 36 * Whether the games framework is enabled site-wide.
37 37 *
38 38 * Backed by the `games` key of the extended options bundle
39 - * (`desktop_mode_get_extended_options()`), default off — opt-in.
39 + * (`openstation_get_extended_options()`), default off — opt-in.
40 40 *
41 41 * @return bool
42 42 */
43 -function desktop_mode_games_enabled() {
44 - $options = desktop_mode_get_extended_options();
43 +function openstation_games_enabled() {
44 + $options = openstation_get_extended_options();
45 45 $enabled = ! empty( $options['games'] );
46 46
47 47 /**
48 48 * Filters whether the games framework is enabled site-wide.
@@ -52,9 +52,9 @@
52 52 * enabled state is consulted (payload build, shell config).
53 53 *
54 54 * @param bool $enabled Whether the games framework is enabled.
55 55 */
56 - return (bool) apply_filters( 'desktop_mode_games_enabled', $enabled );
56 + return (bool) apply_filters( 'openstation_games_enabled', $enabled );
57 57 }
58 58
59 59 /**
60 60 * Loads the games module when the framework is enabled.
@@ -60,21 +60,21 @@
60 60 * Loads the games module when the framework is enabled.
61 61 *
62 62 * @access private
63 63 */
64 -function desktop_mode_games_load() {
65 - if ( ! desktop_mode_games_enabled() ) {
64 +function openstation_games_load() {
65 + if ( ! openstation_games_enabled() ) {
66 66 return;
67 67 }
68 68
69 - require_once DESKTOP_MODE_DIR . 'includes/games/schema.php';
70 - require_once DESKTOP_MODE_DIR . 'includes/games/config.php';
71 - require_once DESKTOP_MODE_DIR . 'includes/games/registry.php';
72 - require_once DESKTOP_MODE_DIR . 'includes/games/store.php';
73 - require_once DESKTOP_MODE_DIR . 'includes/games/playtime.php';
74 - require_once DESKTOP_MODE_DIR . 'includes/games/rest.php';
75 - require_once DESKTOP_MODE_DIR . 'includes/games/heartbeat.php';
76 - require_once DESKTOP_MODE_DIR . 'includes/games/window.php';
77 - require_once DESKTOP_MODE_DIR . 'includes/games/inkfall.php';
78 - require_once DESKTOP_MODE_DIR . 'includes/games/alphabet-soup.php';
69 + require_once OPENSTATION_DIR . 'includes/games/schema.php';
70 + require_once OPENSTATION_DIR . 'includes/games/config.php';
71 + require_once OPENSTATION_DIR . 'includes/games/registry.php';
72 + require_once OPENSTATION_DIR . 'includes/games/store.php';
73 + require_once OPENSTATION_DIR . 'includes/games/playtime.php';
74 + require_once OPENSTATION_DIR . 'includes/games/rest.php';
75 + require_once OPENSTATION_DIR . 'includes/games/heartbeat.php';
76 + require_once OPENSTATION_DIR . 'includes/games/window.php';
77 + require_once OPENSTATION_DIR . 'includes/games/inkfall.php';
78 + require_once OPENSTATION_DIR . 'includes/games/alphabet-soup.php';
79 79 }
80 -add_action( 'plugins_loaded', 'desktop_mode_games_load', 5 );
80 +add_action( 'plugins_loaded', 'openstation_games_load', 5 );