mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
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:
parent
27273e2b1f
commit
8db8af8fe5
@ -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…
x
Reference in New Issue
Block a user