Ticket #45516: 45516.2.diff
File 45516.2.diff, 573 bytes (added by , 4 years ago) |
---|
-
src/wp-admin/includes/post.php
680 680 } 681 681 682 682 if ( $create_in_db ) { 683 $default_title = post_type_supports( $post_type, 'title' ) ? __( 'Auto Draft' ) : __( '(no title supported)' ); 683 684 $post_id = wp_insert_post( 684 685 array( 685 'post_title' => __( 'Auto Draft' ),686 'post_title' => $default_title, 686 687 'post_type' => $post_type, 687 688 'post_status' => 'auto-draft', 688 689 ),