Skip to content

Commit 5d80f7a

Browse files
committed
Remove unnecessary variable
1 parent 8bdd6f7 commit 5d80f7a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/wp-admin/includes/post.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,10 +762,9 @@ function get_default_post_to_edit( $post_type = 'post', $create_in_db = false )
762762
}
763763

764764
if ( $create_in_db ) {
765-
$default_title = post_type_supports( $post_type, 'title' ) ? __( 'Auto Draft' ) : '';
766-
$post_id = wp_insert_post(
765+
$post_id = wp_insert_post(
767766
array(
768-
'post_title' => $default_title,
767+
'post_title' => post_type_supports( $post_type, 'title' ) ? __( 'Auto Draft' ) : '',
769768
'post_type' => $post_type,
770769
'post_status' => 'auto-draft',
771770
),

0 commit comments

Comments
 (0)