[wp-trac] [WordPress Trac] #18750: specify post ID for is_page_template
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 26 01:37:26 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 |
--------------------------+-----------------------
Changes (by nacin):
* owner: => nacin
* status: new => accepted
Comment:
Looks good to me as well. I'll get it in next week.
Let's keep thinking about the function name, though. Here's what's been
suggested here:
- get_the_page_template()
- wp_get_page_template()
- get_custom_page_template()
- get_custom_page_template_name()
- get_page_template_for_post() (even though it is for pages)
- get_page_template_name()
- possible_new_function()
I like get_page_template_name(), myself. "Custom" doesn't have much of a
place here.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18750#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list