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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 22 17:16:58 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 duck_):

 Replying to [comment:3 billerickson]:
 > Ah, I didn't know about get_page_template(). So you recommend creating a
 patch for that to accept an ID?

 Well I didn't think of it on purpose. I was actually giving an example
 name for a new function that would just call `get_post_meta( $id,
 '_wp_page_template', true );` and didn't check if it already existed.

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


More information about the wp-trac mailing list