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

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

 Thanks for the detailed response and clarification. Initially I thought
 you were saying get_page_template() already is a wrapper function, but
 once I looked at it I realized what you meant.

 I think the function is slightly more useful with it not requiring an ID,
 but let me know if you think it's better without and I'll update. Either
 way it will work for my use case.

 My only worry is that it could have a better name since the two function
 names don't indicate clearly what the difference is.

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


More information about the wp-trac mailing list