Make WordPress Core

Ticket #44914: 44914.patch

File 44914.patch, 537 bytes (added by mukesh27, 6 years ago)

Try this patch.

  • wordpress/wp-admin/includes/post.php

    diff -Naur wordpress/wp-admin/includes/post.php wordpress/wp-admin/includes/post.php
     
    567567                if ( isset( $post_data['post_format'] ) ) {
    568568                        set_post_format( $post_ID, $post_data['post_format'] );
    569569                        unset( $post_data['tax_input']['post_format'] );
     570                } else {
     571                        unset( $post_data['tax_input']['post_format'] );
    570572                }
    571573
    572574                $updated[] = wp_update_post( $post_data );