[wp-trac] [WordPress Trac] #18750: specify post ID for is_page_template
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 2 18:58:27 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 |
--------------------------+---------------------
Comment (by nacin):
Since is_page_template() returns false for the default page template, I
wanted this function to return a falsey value. But I also understand there
could be a reason to differentiate between not-a-page and default page
template, hence false and `''` for that edge case use.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18750#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list