[wp-trac] [WordPress Trac] #17353: Remove redundant uri lookups in process_default_headers
WordPress Trac
wp-trac at lists.automattic.com
Mon May 9 03:16:56 UTC 2011
#17353: Remove redundant uri lookups in process_default_headers
-----------------------------+-----------------------------
Reporter: mitchoyoshitaka | Owner: mitchoyoshitaka
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Performance | Version:
Severity: normal | Keywords:
-----------------------------+-----------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17353>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list