#16689 closed defect (bug) (fixed)
functions.php file treated as page template file
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | General | Version: | 3.1 |
| Severity: | minor | Keywords: | has-patch commit 3.2-early |
| 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 in functions.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)
- Keywords has-patch commit 3.2-early added
- Milestone changed from Awaiting Review to Future Release
Note: See
TracTickets for help on using
tickets.

(In [17539]) Avoid functions.php from ever being treated as a page template. fixes #16689.