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