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
This commit is contained in:
Ryan Boren 2011-05-27 15:24:33 +00:00
parent 27273e2b1f
commit 8db8af8fe5
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) {