From 8d7df995513d44356eef2225f5c9e975f6d8d6eb Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 23 Mar 2011 18:40:52 +0000 Subject: [PATCH] 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 --- wp-admin/includes/theme.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 80e967418f..db4d91bdea 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -181,6 +181,9 @@ function get_page_templates() { if ( false !== strpos($basename, '/') ) continue; + if ( 'functions.php' == $basename ) + continue; + $template_data = implode( '', file( $template )); $name = '';