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:
parent
6f1b7a455c
commit
47ff74214f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue