WordPress.org

Make WordPress Core

Ticket #11455: 11455-wp_delete_attachment.2.diff

File 11455-wp_delete_attachment.2.diff, 473 bytes (added by nacin, 4 years ago)

Typo in patch.

  • post.php

     
    28392839        if ( 'attachment' != $post->post_type ) 
    28402840                return false; 
    28412841 
    2842         if ( !$force_delete && 'trash' != $post->post_status ) 
     2842        if ( !$force_delete && EMPTY_TRASH_DAYS && MEDIA_TRASH && 'trash' != $post->post_status ) 
    28432843                return wp_trash_post( $post_id ); 
    28442844 
    28452845        delete_post_meta($post_id, '_wp_trash_meta_status');