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

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 16 15:58:01 UTC 2012


#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):

 Here's another suggestion: {{{get_custom_page_template()}}}

 To summarize, we went from the initial proposal:

 {{{
 is_page_template( $template, $id )
 }}}

 to

 {{{
 get_custom_page_template( $id ) == $template
 }}}

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


More information about the wp-trac mailing list