[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 17:01:18 UTC 2012


#20061: Preprocess get_page_templates() and store in a global
-------------------------+------------------------------
 Reporter:  Master Jake  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.3.1
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by scribu):

 Globals are evil.

 I can't think of any objections to making get_page_templates() available
 everywhere, aside from the general "bloat!" argument.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20061#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list