WordPress.org

Make WordPress Core

Changeset 12415


Ignore:
Timestamp:
12/16/09 17:14:21 (4 years ago)
Author:
ryan
Message:

Delete instead of trash when bulk deleting media. Props nacin. fixes #11455

File:
1 edited

Legend:

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

    r12332 r12415  
    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 
Note: See TracChangeset for help on using the changeset viewer.