[wp-trac] [WordPress Trac] #21561: is_page_template() doesn't work in admin edit page screen
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 13 10:51:38 UTC 2012
#21561: is_page_template() doesn't work in admin edit page screen
-----------------------------+------------------------------
Reporter: l3rady | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.4.1
Severity: trivial | Resolution:
Keywords: needs-patch |
-----------------------------+------------------------------
Comment (by thee17):
Using template tags does not make sense in the admin. I think your
workaround is more along the proper method but I would use
get_post_meta($post->id, '_wp_page_template');
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21561#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list