[wp-trac] [WordPress Trac] #16689: functions.php file treated as page template file

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 27 16:55:43 UTC 2011


#16689: functions.php file treated as page template file
--------------------------+-----------------------------
 Reporter:  chodorowicz   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 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:
 1. 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

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


More information about the wp-trac mailing list