Ticket #29080: 29080.patch
File 29080.patch, 554 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/post.php
3146 3146 } 3147 3147 3148 3148 $post_status = empty( $postarr['post_status'] ) ? 'draft' : $postarr['post_status']; 3149 if ( 'attachment' === $post_type && ! in_array( $post_status, array( 'inherit', 'private' ) ) ) {3149 if ( 'attachment' === $post_type && ! in_array( $post_status, array( 'inherit', 'private', 'trash' ) ) ) { 3150 3150 $post_status = 'inherit'; 3151 3151 } 3152 3152