| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Desktop Mode — Wallpaper context-menu server side. | |
| 3 | + * OpenStation — Wallpaper context-menu server side. | |
| 4 | 4 | * |
| 5 | 5 | * Builds the array shipped to the shell as |
| 6 | 6 | * `serverWallpaperMenuItems`. Plugins extend the menu by |
| 7 | 7 | * filtering the array — empty by default, so no menu items |
| @@ -12,13 +12,12 @@ | ||
| 12 | 12 | * need access to closures we'd lose across the wire. Server |
| 13 | 13 | * items take a `callbackId` string the JS bundle resolves in |
| 14 | 14 | * its `serverCallbacks` map; plugins that don't ship a JS |
| 15 | 15 | * callback subscribe via the |
| 16 | - * `desktop-mode.wallpaper-context-menu.activated` action | |
| 16 | + * `os.wallpaper-context-menu.activated` action | |
| 17 | 17 | * instead. |
| 18 | 18 | * |
| 19 | - * @package WPDesktopMode | |
| 20 | - * @since 0.9.0 | |
| 19 | + * @package OpenStation | |
| 21 | 20 | */ |
| 22 | 21 | |
| 23 | 22 | defined( 'ABSPATH' ) || exit; |
| 24 | 23 | |
| @@ -24,13 +23,11 @@ | ||
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * Builds the server-borne wallpaper-menu items. |
| 27 | 26 | * |
| 28 | - * @since 0.9.0 | |
| 29 | - * | |
| 30 | 27 | * @return array[] |
| 31 | 28 | */ |
| 32 | -function desktop_mode_build_wallpaper_menu_items() { | |
| 29 | +function openstation_build_wallpaper_menu_items() { | |
| 33 | 30 | $items = array(); |
| 34 | 31 | |
| 35 | 32 | /** |
| 36 | 33 | * Filter the server-borne wallpaper context-menu items. |
| @@ -37,13 +34,11 @@ | ||
| 37 | 34 | * |
| 38 | 35 | * Each item must have at least `id` and `label`. Optional: |
| 39 | 36 | * `icon`, `sort`, `disabled`, `callbackId`. |
| 40 | 37 | * |
| 41 | - * @since 0.9.0 | |
| 42 | - * | |
| 43 | 38 | * @param array[] $items Items list. |
| 44 | 39 | */ |
| 45 | - $items = (array) apply_filters( 'desktop_mode_wallpaper_context_menu_items', $items ); | |
| 40 | + $items = (array) apply_filters( 'openstation_wallpaper_context_menu_items', $items ); | |
| 46 | 41 | |
| 47 | 42 | $out = array(); |
| 48 | 43 | foreach ( $items as $entry ) { |
| 49 | 44 | if ( ! is_array( $entry ) || empty( $entry['id'] ) || empty( $entry['label'] ) ) { |