Make WordPress Core

Changeset 18062


Ignore:
Timestamp:
05/27/2011 03:24:33 PM (13 years ago)
Author:
ryan
Message:

Return false from is_page_template() if the template is default. Props johnbillion. fixes #17458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r17683 r18062  
    12431243    // We have no argument passed so just see if a page_template has been specified
    12441244    if ( empty( $template ) ) {
    1245         if (!empty( $page_template ) ) {
     1245        if ( !empty( $page_template ) and ( 'default' != $page_template ) ) {
    12461246            return true;
    12471247        }
Note: See TracChangeset for help on using the changeset viewer.