Changeset 39346 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/23/2016 09:52:27 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r39278 r39346 3059 3059 3060 3060 $post_status = empty( $postarr['post_status'] ) ? 'draft' : $postarr['post_status']; 3061 if ( 'attachment' === $post_type && ! in_array( $post_status, array( 'inherit', 'private', 'trash' )) ) {3061 if ( 'attachment' === $post_type && ! in_array( $post_status, array( 'inherit', 'private', 'trash', 'auto-draft' ), true ) ) { 3062 3062 $post_status = 'inherit'; 3063 3063 }
Note: See TracChangeset
for help on using the changeset viewer.