From 47ff74214f607ceb4d3fa4d419fae4c7de8ba498 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 27 May 2011 15:24:33 +0000 Subject: [PATCH] Return false from is_page_template() if the template is default. Props johnbillion. fixes #17458 git-svn-id: http://svn.automattic.com/wordpress/trunk@18062 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 49b4b3ce2..593846e0b 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1242,7 +1242,7 @@ function is_page_template($template = '') { // We have no argument passed so just see if a page_template has been specified if ( empty( $template ) ) { - if (!empty( $page_template ) ) { + if ( !empty( $page_template ) and ( 'default' != $page_template ) ) { return true; } } elseif ( $template == $page_template) {