Changeset 7926
- Timestamp:
- 05/13/2008 09:03:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-includes/post.php
r7920 r7926 1348 1348 $post->page_template = $page_template; 1349 1349 $page_templates = get_page_templates(); 1350 if ( !in_array($page_template, $page_templates) ) {1350 if ( 'default' != $page_template && !in_array($page_template, $page_templates) ) { 1351 1351 if ( $wp_error ) 1352 1352 return new WP_Error('invalid_page_template', __('The page template is invalid.'));
Note: See TracChangeset
for help on using the changeset viewer.