[wp-trac] [WordPress Trac] #58674: Fix incorrect hook being used as separator between `wp-before-template` and `wp-template` metrics in automated performance tests

WordPress Trac noreply at wordpress.org
Fri Jul 7 17:39:24 UTC 2023


#58674: Fix incorrect hook being used as separator between `wp-before-template` and
`wp-template` metrics in automated performance tests
------------------------------+--------------------------
 Reporter:  flixos90          |       Owner:  joemcgill
     Type:  task (blessed)    |      Status:  closed
 Priority:  normal            |   Milestone:  6.3
Component:  Build/Test Tools  |     Version:  6.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |     Focuses:  performance
------------------------------+--------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56162" 56162]:
 {{{
 #!CommitTicketReference repository="" revision="56162"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58674#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list