Opened 14 years ago
Closed 14 years ago
#17353 closed defect (bug) (fixed)
Remove redundant uri lookups in process_default_headers
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Performance | Keywords: | has-patch |
Focuses: | Cc: |
Description
process_default_headers currently hits get_template_directory_uri() and get_stylesheet_directory_uri() twice per default header. Considering there are filters on these functions' return values which could potentially be costly, and we expect the values to not change, it makes sense to store them locally once before the loop.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In [18505]: