From a3b80f551fda271f1411f5e91d36e0e5192226af Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Fri, 7 Jul 2023 17:39:09 +0000 Subject: [PATCH] Build/Test: Fix incorrect hook being used to separate Server-Timing metrics in performance tests. The `wp-before-template` and `wp-template` metric intend to separate WordPress core's own bootstrap process from any logic that is part of the eventual template loaded. The appropriate hook for that is the `template_include` filter as that occurs right before the template file is included. Props mukesh27, joemcgill. Fixes #58674. git-svn-id: https://develop.svn.wordpress.org/trunk@56162 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/performance/wp-content/mu-plugins/server-timing.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/performance/wp-content/mu-plugins/server-timing.php b/tests/performance/wp-content/mu-plugins/server-timing.php index 8d7e7ae3aa..9ae95561ec 100644 --- a/tests/performance/wp-content/mu-plugins/server-timing.php +++ b/tests/performance/wp-content/mu-plugins/server-timing.php @@ -1,8 +1,8 @@