[wp-trac] [WordPress Trac] #18750: specify post ID for is_page_template
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 16 16:56:44 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 scribu):
This part seems superfluous, since get_post_meta() already returns false
if there's no template to be found:
{{{
1280 if( !empty( $page_template ) )
1281 return $page_template;
1282 else
1283 return false;
}}}
Also, coding standards: {{{if (}}} instead of {{{if(}}}.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18750#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list