优化了一些问题
This commit is contained in:
@@ -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
|
||||
* 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 {
|
||||
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') !== '') {
|
||||
return 'page';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user