WordPress.org

Make WordPress Core

Ticket #15230: post.diff

File post.diff, 395 bytes (added by kapeels, 4 years ago)

Patch instead of the file attached.

  • post.php

     
    25182518                                return 0; 
    25192519                } 
    25202520        } else { 
     2521                do_action( 'pre_post_insert', $data, $postarr ); 
    25212522                if ( isset($post_mime_type) ) 
    25222523                        $data['post_mime_type'] = stripslashes( $post_mime_type ); // This isn't in the update 
    25232524                // If there is a suggested ID, use it if not already present