Ticket #45516: 45516.patch
File 45516.patch, 562 bytes (added by , 6 years ago) |
---|
-
src/wp-admin/includes/post.php
637 637 } 638 638 639 639 if ( $create_in_db ) { 640 $default_title = post_type_supports( $post_type, 'title' ) ? __( 'Auto Draft' ) : __( '(no title)' ); 640 641 $post_id = wp_insert_post( 641 642 array( 642 'post_title' => __( 'Auto Draft' ),643 'post_title' => $default_title, 643 644 'post_type' => $post_type, 644 645 'post_status' => 'auto-draft', 645 646 )