Make WordPress Core

Ticket #42910: 42910.patch

File 42910.patch, 609 bytes (added by buddydevelopers, 7 years ago)

Conguratulations Ajay, and keep it up. I am adding patch for this Bug.

  • wp-admin/post.php

    diff --git a/wp-admin/post.php b/wp-admin/post.php
    index 7fe38636af..1a91592ff7 100644
    a b switch ( $action ) { 
    8888
    8989                $_POST['comment_status'] = get_default_comment_status( $post->post_type );
    9090                $_POST['ping_status']    = get_default_comment_status( $post->post_type, 'pingback' );
     91                if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) && get_option( 'default_post_format' ) )
     92                        $_POST['post_format']    = get_option( 'default_post_format' );
    9193
    9294                edit_post();
    9395                wp_dashboard_quick_press();