From 8db8af8fe5a42e5763e9b611b905b3a9cab01c4c Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@18062 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 49b4b3ce28..593846e0b1 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) {