[wp-trac] [WordPress Trac] #17458: is_page_template() returns true for no page template

WordPress Trac wp-trac at lists.automattic.com
Mon May 16 17:00:47 UTC 2011


#17458: is_page_template() returns true for no page template
--------------------------+-----------------------------
 Reporter:  johnbillion   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Template      |    Version:
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 At some point the `_wp_page_template` post meta field went from being
 empty to having a value of 'default' for pages that have no template.

 `is_page_template()` hasn't been updated to reflect this, and will return
 true for pages that do not have a template (unless you specify the
 `$template` parameter)

 Patch upcoming.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17458>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list