Make WordPress Core

Ticket #45516: 45516.2.diff

File 45516.2.diff, 573 bytes (added by garrett-eclipse, 4 years ago)

Refreshed patch to take into account copy review of (no title supported)

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

     
    680680        }
    681681
    682682        if ( $create_in_db ) {
     683                $default_title = post_type_supports( $post_type, 'title' ) ? __( 'Auto Draft' ) : __( '(no title supported)' );
    683684                $post_id = wp_insert_post(
    684685                        array(
    685                                 'post_title'  => __( 'Auto Draft' ),
     686                                'post_title'  => $default_title,
    686687                                'post_type'   => $post_type,
    687688                                'post_status' => 'auto-draft',
    688689                        ),