From ba5874c93a15a2522c892c674c1b60067935eda5 Mon Sep 17 00:00:00 2001 From: Nicolas Lemoine Date: Tue, 1 Feb 2022 17:34:22 +0100 Subject: [PATCH] Add `is_favicon` to the `mainQueryTemplateAllowed` conditions See https://github.com/WordPress/WordPress/blob/fefd1930c5999e614c691a40a2ac050df273199d/wp-includes/template-loader.php#L39 --- src/QueryTemplate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/QueryTemplate.php b/src/QueryTemplate.php index 1196c05..77bbb8a 100644 --- a/src/QueryTemplate.php +++ b/src/QueryTemplate.php @@ -65,6 +65,7 @@ public static function mainQueryTemplateAllowed() || !apply_filters('exit_on_http_head', true) ) && !is_robots() + && !is_favicon() && !is_feed() && !is_trackback() && !is_embed();