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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 22 17:42:14 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 billerickson):

 New patch creates new function, get_the_page_template( $id ), which is
 simply a wrapper for get_post_meta.

 get_page_template() returns the full path of the template file using
 get_query_template(), so it wasn't a good fit for this enhancement.

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


More information about the wp-trac mailing list