WordPress.org

Make WordPress Core

Ticket #9353: post.diff

File post.diff, 1007 bytes (added by aldenta, 5 years ago)

wp-admin/includes/post.php diff file

  • wp-admin/includes/post.php

     
    356356        $post->ping_status = get_option( 'default_ping_status' ); 
    357357        $post->post_pingback = get_option( 'default_pingback_flag' ); 
    358358        $post->post_category = get_option( 'default_category' ); 
    359         $post->post_content = apply_filters( 'default_content', $post_content); 
     359        $post->post_content = apply_filters( 'default_content', $post_content ); 
    360360        $post->post_title = apply_filters( 'default_title', $post_title ); 
    361         $post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt); 
    362         $post->page_template = 'default'; 
    363         $post->post_parent = 0; 
     361        $post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt ); 
     362        $post->page_template = apply_filters( 'default_template', 'default' ); 
     363        $post->post_parent = apply_filters( 'default_parent', 0 ); 
    364364        $post->menu_order = 0; 
    365365 
    366366        return $post;