[wp-trac] [WordPress Trac] #18750: specify post ID for is_page_template
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 2 18:56:56 UTC 2012
#18750: specify post ID for is_page_template
--------------------------+---------------------
Reporter: billerickson | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.4
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Changes (by nacin):
* status: accepted => closed
* resolution: => fixed
Comment:
In [20075]:
{{{
#!CommitTicketReference repository="" revision="20075"
Introduce get_page_template_slug( $id = null ) to return a page's template
(like "showcase.php"). Returns false if post ID is not a page, and an
empty string for the default page template. Use the function across core.
props billerickson for initial patch. fixes #18750.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18750#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list