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/render/body-classes.php +5 -7 1.1.41.1.10 View file →
@@ -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 );