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/config.php +8 -14 0.9.71.1.10 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2 /**
3 - * Desktop Mode — Games framework config.
3 + * OpenStation — Games framework config.
4 4 *
5 5 * Framework-level values every game receives on its launch-context
6 6 * `config` (merged in by the `serverGames` payload builder; a game's
7 7 * own `config` keys win on collision):
@@ -11,10 +11,9 @@
11 11 * framework asset, not a per-game one: it is
12 12 * identical for every player, which is what lets
13 13 * seeded games generate the same puzzle worldwide.
14 14 *
15 - * @package WPDesktopMode
16 - * @since 0.9.8
15 + * @package OpenStation
17 16 */
18 17
19 18 defined( 'ABSPATH' ) || exit;
20 19
@@ -22,15 +21,13 @@
22 21 * URL of the shared games dictionary asset, cache-busted on content
23 22 * change (the browser caches the ~150 KB list across sessions
24 23 * otherwise).
25 24 *
26 - * @since 0.9.8
27 - *
28 25 * @return string The dictionary URL.
29 26 */
30 -function desktop_mode_games_words_url() {
31 - $words_file = DESKTOP_MODE_DIR . 'assets/games/words.txt';
32 - $words_url = DESKTOP_MODE_URL . 'assets/games/words.txt';
27 +function openstation_games_words_url() {
28 + $words_file = OPENSTATION_DIR . 'assets/games/words.txt';
29 + $words_url = OPENSTATION_URL . 'assets/games/words.txt';
33 30 if ( file_exists( $words_file ) ) {
34 31 $words_url = add_query_arg( 'ver', (string) filemtime( $words_file ), $words_url );
35 32 }
36 33
@@ -40,13 +37,11 @@
40 37 * Seeded games generate identical puzzles worldwide only while
41 38 * every player resolves the same word list — swap the URL for
42 39 * all users (a translated list, a themed list), not per user.
43 40 *
44 - * @since 0.9.8
45 - *
46 41 * @param string $words_url The dictionary URL (with `ver` cache-bust).
47 42 */
48 - return (string) apply_filters( 'desktop_mode_games_words_url', $words_url );
43 + return (string) apply_filters( 'openstation_games_words_url', $words_url );
49 44 }
50 45
51 46 /**
52 47 * The framework-level `config` keys merged into every game's launch
@@ -51,14 +46,13 @@
51 46 /**
52 47 * The framework-level `config` keys merged into every game's launch
53 48 * context. A game's own `config` wins on collision.
54 49 *
55 - * @since 0.9.8
56 50 * @internal
57 51 *
58 52 * @return array Framework config keys.
59 53 */
60 -function desktop_mode_games_framework_config() {
54 +function openstation_games_framework_config() {
61 55 return array(
62 - 'wordsUrl' => esc_url_raw( desktop_mode_games_words_url() ),
56 + 'wordsUrl' => esc_url_raw( openstation_games_words_url() ),
63 57 );
64 58 }