Make WordPress Core

Changeset 7926


Ignore:
Timestamp:
05/13/2008 09:03:46 PM (16 years ago)
Author:
ryan
Message:

default is a valid page template. see #6098

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/post.php

    r7920 r7926  
    13481348        $post->page_template = $page_template;
    13491349        $page_templates = get_page_templates();
    1350         if ( ! in_array($page_template, $page_templates) ) {
     1350        if ( 'default' != $page_template && !in_array($page_template, $page_templates) ) {
    13511351            if ( $wp_error )
    13521352                return new WP_Error('invalid_page_template', __('The page template is invalid.'));
Note: See TracChangeset for help on using the changeset viewer.