Make WordPress Core

Changeset 7925


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

default is a valid page template. see #6098

File:
1 edited

Legend:

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

    r7913 r7925  
    12981298        $post->page_template = $page_template;
    12991299        $page_templates = get_page_templates();
    1300         if ( ! in_array($page_template, $page_templates) ) {
     1300        if ( 'default' != $page_template && !in_array($page_template, $page_templates) ) {
    13011301            if ( $wp_error )
    13021302                return new WP_Error('invalid_page_template', __('The page template is invalid.'));
Note: See TracChangeset for help on using the changeset viewer.