fix(submit): keep sidebar visible on front submit page

This commit is contained in:
kate522 committed 2026-09-05 21:50:40 +08:00
1 parent 49ffdc6ab2
commit 51dd38163d
7 files changed
+20 -654

No files matched your search

+7 -1
View File
@@ -151,8 +151,14 @@ function aksrt_is_show_sidebar_filter(): bool {
return false;
}
// The submit page owns functional sidebar controls even without assigned
// widgets, so its column must remain available when the sidebar is enabled.
if (is_page_template('templates/pages/page-submit.php')) {
return true;
}
// An empty widget stack would leave the reserved column as a bare gutter,
// so every scene (not only singles) collapses to no-sidebar.
// so every other scene collapses to no-sidebar.
if (!aksrt_has_current_sidebar_widgets()) {
return false;
}