| @@ -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 |