Make WordPress Core


Ignore:
Timestamp:
09/14/2009 02:03:32 PM (17 years ago)
Author:
ryan
Message:

Remove trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r11841 r11930  
    7070} elseif ( isset($_GET['doaction']) || isset($_GET['doaction2']) || isset($_GET['delete_all']) || isset($_GET['delete_all2']) ) {
    7171        check_admin_referer('bulk-media');
    72        
     72
    7373        if ( isset($_GET['delete_all']) || isset($_GET['delete_all2']) ) {
    7474                $post_ids = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type='attachment' AND post_status = 'trash'" );
    … …  
    7979        } else
    8080                wp_redirect($_SERVER['HTTP_REFERER']);
    81        
     81
    8282        $location = 'upload.php';
    8383        if ( $referer = wp_get_referer() ) {
    … …  
    9191                                if ( !current_user_can('delete_post', $post_id) )
    9292                                        wp_die( __('You are not allowed to move this post to the trash.') );
    93                                
     93
    9494                                if ( !wp_trash_post($post_id) )
    9595                                        wp_die( __('Error in moving to trash...') );
    … …  
    101101                                if ( !current_user_can('delete_post', $post_id) )
    102102                                        wp_die( __('You are not allowed to move this post out of the trash.') );
    103                                
     103
    104104                                if ( !wp_untrash_post($post_id) )
    105105                                        wp_die( __('Error in restoring from trash...') );
    … …  
    111111                                if ( !current_user_can('delete_post', $post_id_del) )
    112112                                        wp_die( __('You are not allowed to delete this post.') );
    113        
     113
    114114                                if ( !wp_delete_attachment($post_id_del) )
    115115                                        wp_die( __('Error in deleting...') );
Note: See TracChangeset for help on using the changeset viewer.