Make WordPress Core

Ticket #25334: 25334.patch

File 25334.patch, 444 bytes (added by nofearinc, 11 years ago)
  • wp-includes/post.php

     
    29072907                        if ( $wp_error )
    29082908                                return new WP_Error('invalid_page_template', __('The page template is invalid.'));
    29092909                        else
    2910                                 return 0;
     2910                                $page_template = 'default';
    29112911                }
    29122912                update_post_meta($post_ID, '_wp_page_template',  $page_template);
    29132913        }