[wp-trac] [WordPress Trac] #20061: Preprocess get_page_templates() and store in a global
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 17 19:01:38 UTC 2012
#20061: Preprocess get_page_templates() and store in a global
-------------------------+----------------------
Reporter: Master Jake | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.3.1
Severity: normal | Resolution: wontfix
Keywords: |
-------------------------+----------------------
Comment (by Master Jake):
What if the get_page_templates first checks to see if any templates have
been registered with register_page_templates and uses that list? As a
fallback, it could perform the old-school grepping. This method would
allow newer themes since the addition of the new registering system to use
get_page_templates with no drop in performance, and older themes would
work as well (just with a much greater performance hit).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20061#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list