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/os-settings.php +27 -0 1.1.91.1.10 View file →
@@ -93,8 +93,10 @@
93 93 */
94 94 function openstation_default_os_settings() {
95 95 return array(
96 96 'wallpaper' => 'galaxy',
97 + // Pulse, the brand's signature. Mirrors `DEFAULTS` in
98 + // `src/settings/constants.ts`.
97 99 'accent' => 'pulse',
98 100 // Only read when `accent` is `custom`. Seeded with Pulse so
99 101 // picking Custom before touching the wheel is a no-op rather
100 102 // than a jump to black. Mirrors `DEFAULTS` in
@@ -210,8 +212,13 @@
210 212 // window (e.g. array( 'author', 'tags' )). Empty array means
211 213 // every column is visible. The sticky 'title' column is always
212 214 // shown — the UI prevents toggling it.
213 215 'nativePostsHiddenColumns' => array(),
216 + // Per-user list of column keys hidden in the native Pages
217 + // window (e.g. array( 'author', 'parent' )). Empty array means
218 + // every column is visible. The sticky 'title' column is always
219 + // shown — the UI prevents toggling it.
220 + 'nativePagesHiddenColumns' => array(),
214 221 // Per-user opt-IN for the native Pages window. Same posture as
215 222 // nativePostsEnabled — defaults OFF (Beta), users opt in to swap
216 223 // the classic `edit.php?post_type=page` iframe for the native UI.
217 224 'nativePagesEnabled' => false,
@@ -778,8 +785,27 @@
778 785 // user meta indefinitely.
779 786 $native_posts_hidden_columns = array_slice( array_values( array_unique( $native_posts_hidden_columns ) ), 0, 32 );
780 787 }
781 788
789 + $native_pages_hidden_columns = $defaults['nativePagesHiddenColumns'];
790 + if ( isset( $raw['nativePagesHiddenColumns'] ) && is_array( $raw['nativePagesHiddenColumns'] ) ) {
791 + $native_pages_hidden_columns = array();
792 + foreach ( $raw['nativePagesHiddenColumns'] as $col ) {
793 + if ( ! is_string( $col ) || '' === $col ) {
794 + continue;
795 + }
796 + $slug = sanitize_key( $col );
797 + if ( '' === $slug ) {
798 + continue;
799 + }
800 + $native_pages_hidden_columns[] = $slug;
801 + }
802 + // Cap to a sane upper bound — far more than any plausible
803 + // column count, but blocks a malicious payload from bloating
804 + // user meta indefinitely.
805 + $native_pages_hidden_columns = array_slice( array_values( array_unique( $native_pages_hidden_columns ) ), 0, 32 );
806 + }
807 +
782 808 $native_pages_enabled = isset( $raw['nativePagesEnabled'] )
783 809 ? (bool) $raw['nativePagesEnabled']
784 810 : $defaults['nativePagesEnabled'];
785 811
@@ -1002,8 +1028,9 @@
1002 1028 'heartbeatRate' => $heartbeat_rate,
1003 1029 'nativePostsEnabled' => $native_posts_enabled,
1004 1030 'nativePostsHiddenColumns' => $native_posts_hidden_columns,
1005 1031 'nativePagesEnabled' => $native_pages_enabled,
1032 + 'nativePagesHiddenColumns' => $native_pages_hidden_columns,
1006 1033 'nativeUsersEnabled' => $native_users_enabled,
1007 1034 'nativePluginsEnabled' => $native_plugins_enabled,
1008 1035 'nativeCommentsEnabled' => $native_comments_enabled,
1009 1036 'stationHomeEnabled' => $station_home_enabled,