#16689 closed defect (bug) (fixed)
functions.php file treated as page template file
Reported by: | chodorowicz | Owned by: | |
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | minor | Version: | 3.1 |
Component: | General | Keywords: | has-patch commit 3.2-early |
Focuses: | Cc: |
Description
When the string Template Name:
is put into functions.php
, this file is treated by WP as page template file. This situation is very unique, but still I believe that WP shouldn't even try to treat functions.php
as page template file.
Steps:
- place
// Template Name:whatever
infunctions.php
. The new template shows up in the select box for page template in page edit screen.
accompanying discussion http://wordpress.stackexchange.com/questions/10537/get-name-of-the-current-template-file/10543
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
(In [17539]) Avoid functions.php from ever being treated as a page template. fixes #16689.