[wp-trac] [WordPress Trac] #18750: specify post ID for is_page_template
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 16 16:24:38 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 billerickson):
New patch:
- Renamed function to get_custom_page_template()
- Made a few minor modifications to it (duplicated how is_page_template()
used the global $wp_query to get the ID)
- Used the function in is_page_template() and get_page_template()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18750#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list