Avoid functions.php from ever being treated as a page template. fixes #16689.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-03-23 18:40:52 +00:00
parent edaea210a1
commit 8d7df99551
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ function get_page_templates() {
if ( false !== strpos($basename, '/') )
continue;
if ( 'functions.php' == $basename )
continue;
$template_data = implode( '', file( $template ));
$name = '';