WordPress.org

Make WordPress Core

Changeset 29337


Ignore:
Timestamp:
08/01/2014 03:14:56 PM (7 years ago)
Author:
wonderboymusic
Message:

Unbreak Media Trash after [28788].

Props SergeyBiryukov.
Fixes #29080.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r29318 r29337  
    31473147
    31483148    $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' ) ) ) {
    31503150        $post_status = 'inherit';
    31513151    }
Note: See TracChangeset for help on using the changeset viewer.