Opened 15 years ago
Closed 15 years ago
#17458 closed defect (bug) (fixed)
is_page_template() returns true for no page template
| Reported by: | johnbillion | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Template | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch