优化了一些问题

This commit is contained in:
2026-08-29 18:05:49 +08:00
parent 54db1131dc
commit 1d904e6532
@@ -49,8 +49,16 @@ if (!function_exists('aksrt_header_slide_current_page_type')) {
* *
* Custom rewrite requests can retain WordPress's is_home flag, so the * Custom rewrite requests can retain WordPress's is_home flag, so the
* explicit theme surfaces must win before the home fallback is evaluated. * explicit theme surfaces must win before the home fallback is evaluated.
* Utility rewrites (download token hand-off, go-link confirm) are error /
* hand-off surfaces and opt out entirely, like the excluded templates.
*/ */
function aksrt_header_slide_current_page_type(): string { function aksrt_header_slide_current_page_type(): string {
if (class_exists('\AKSRT\Content\Download') && (string) get_query_var(\AKSRT\Content\Download::QUERY_VAR) !== '') {
return '';
}
if ((string) get_query_var('aksrt_go_redirect') !== '') {
return '';
}
if ((string) get_query_var('aksrt_message_view') !== '') { if ((string) get_query_var('aksrt_message_view') !== '') {
return 'page'; return 'page';
} }