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
This commit is contained in:
ryan 2011-05-27 15:24:33 +00:00
parent 6f1b7a455c
commit 47ff74214f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {