[wp-trac] [WordPress Trac] #18750: specify post ID for is_page_template

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 16 19:36:25 UTC 2011


#18750: specify post ID for is_page_template
------------------------------------+------------------------------
 Reporter:  billerickson            |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  General                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by scribu):

 The naming problem comes from the fact that we don't have a clear name for
 templates set via _wp_page_template.

 The new function should be used in get_page_template() and
 is_page_template(), which currently uses some clunky code.

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


More information about the wp-trac mailing list