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/ajax.php +9 -0 1.1.81.1.10 View file →
@@ -38,8 +38,17 @@
38 38 $enabled = ! empty( $_POST['enabled'] ) && '1' === $_POST['enabled'] ? '1' : '';
39 39
40 40 update_user_meta( get_current_user_id(), 'desktop_mode_mode', $enabled );
41 41
42 + // The first-run stamps and the enable / disable actions. One helper
43 + // shared with the portal's auto-enable so the two writers cannot
44 + // drift — see `includes/first-run/stamps.php`.
45 + if ( '1' === $enabled ) {
46 + openstation_record_user_enabled( get_current_user_id() );
47 + } else {
48 + openstation_record_user_disabled( get_current_user_id() );
49 + }
50 +
42 51 // Tell the client where to land.
43 52 //
44 53 // Enabling from classic admin: land on the shell screen with the
45 54 // Dashboard as the page it opens first. The explicit "Switch to