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

git-svn-id: https://develop.svn.wordpress.org/trunk@17539 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-03-23 18:40:52 +00:00
parent 21c2c70e25
commit 711abb67bc

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 = '';