Make WordPress Core


Ignore:
Timestamp:
08/12/2009 10:57:15 AM (15 years ago)
Author:
azaozz
Message:

Fix bulk edit, some cleanup and message fixes for moving in/out of the trash, see #4529

File:
1 edited

Legend:

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

    r11749 r11807  
    1212wp_enqueue_script( 'jquery-ui-draggable' );
    1313
    14 if (!current_user_can('upload_files'))
     14if ( !current_user_can('upload_files') )
    1515    wp_die(__('You do not have permission to upload files.'));
    1616
    17 if ( isset($_GET['find_detached'] ) ) {
     17if ( isset($_GET['find_detached']) ) {
    1818    check_admin_referer('bulk-media');
    1919
    20     if ( ! current_user_can('edit_posts') )
     20    if ( !current_user_can('edit_posts') )
    2121        wp_die( __('You are not allowed to scan for lost attachments.') );
    2222
     
    100100            foreach( (array) $post_ids as $post_id ) {
    101101                if ( !current_user_can('delete_post', $post_id) )
    102                     wp_die( __('You are not allowed to remove this post from the trash.') );
     102                    wp_die( __('You are not allowed to move this post out of the trash.') );
    103103               
    104104                if ( !wp_untrash_post($post_id) )
Note: See TracChangeset for help on using the changeset viewer.