Make WordPress Core

Ticket #18049: 18049.patch

File 18049.patch, 544 bytes (added by SergeyBiryukov, 13 years ago)
  • wp-admin/includes/post.php

     
    424424                if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) && get_option( 'default_post_format' ) )
    425425                        set_post_format( $post, get_option( 'default_post_format' ) );
    426426        } else {
     427                $post = new stdClass;
    427428                $post->ID = 0;
    428429                $post->post_author = '';
    429430                $post->post_date = '';