diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index f90effed3e..6d0d5a9246 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -555,6 +555,7 @@ function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) $post->post_date = ''; $post->post_date_gmt = ''; $post->post_password = ''; + $post->post_name = ''; $post->post_type = $post_type; $post->post_status = 'draft'; $post->to_ping = ''; @@ -598,7 +599,6 @@ function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) * @param WP_Post $post Post object. */ $post->post_excerpt = apply_filters( 'default_excerpt', $post_excerpt, $post ); - $post->post_name = ''; return $post; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 67082e3abb..c79183b161 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30625'; +$wp_version = '4.1-beta2-30626'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.