| @@ -31,15 +31,13 @@ | ||
| 31 | 31 | if ( openstation_is_chromeless_request() ) { |
| 32 | 32 | return ltrim( $classes . ' os-chromeless' ); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - // Per-request classic override: don't tag the body as desktop-active so | |
| 36 | - // the classic chrome isn't hidden by CSS for this one tab. | |
| 37 | - if ( openstation_is_classic_request() ) { | |
| 38 | - return $classes; | |
| 39 | - } | |
| 40 | - | |
| 41 | - if ( openstation_is_enabled() ) { | |
| 35 | + // `os-active` hides the classic chrome, so it belongs only to a | |
| 36 | + // request that paints the shell: the shell screen, or a solo boot. | |
| 37 | + // A classic-flagged request, and a plain admin page reached with | |
| 38 | + // the portal redirect disabled, keep their chrome. | |
| 39 | + if ( openstation_is_shell_request() ) { | |
| 42 | 40 | $classes = ltrim( |
| 43 | 41 | $classes . ' os-active os-admin-bar-' |
| 44 | 42 | . openstation_get_admin_bar_mode() |
| 45 | 43 | ); |