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

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 2 18:19:36 UTC 2012


#18750: specify post ID for is_page_template
--------------------------+-----------------------
 Reporter:  billerickson  |       Owner:  nacin
     Type:  enhancement   |      Status:  accepted
 Priority:  normal        |   Milestone:  3.4
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by nacin):

 This function should not use get_queried_object_id() by default, as that
 is not typical of a post function. Rather, it should default to
 get_the_ID().

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


More information about the wp-trac mailing list