Changeset 3985 for trunk/wp-admin/inline-uploading.php
- Timestamp:
- 07/05/2006 10:00:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/inline-uploading.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/inline-uploading.php
r3983 r3985 6 6 7 7 if (!current_user_can('upload_files')) 8 die(__('You do not have permission to upload files.'));8 wp_die(__('You do not have permission to upload files.')); 9 9 10 10 wp_reset_vars(array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment')); … … 23 23 24 24 if ( !current_user_can('edit_post', (int) $attachment) ) 25 die(__('You are not allowed to delete this attachment.').' <a href="'.basename(__FILE__)."?post=$post&all=$all&action=upload\">".__('Go back').'</a>');25 wp_die(__('You are not allowed to delete this attachment.').' <a href="'.basename(__FILE__)."?post=$post&all=$all&action=upload\">".__('Go back').'</a>'); 26 26 27 27 wp_delete_attachment($attachment); … … 39 39 40 40 if ( isset($file['error']) ) 41 die($file['error'] . '<br /><a href="' . basename(__FILE__) . '?action=upload&post=' . $post . '">'.__('Back to Image Uploading').'</a>');41 wp_die($file['error'] . '<br /><a href="' . basename(__FILE__) . '?action=upload&post=' . $post . '">'.__('Back to Image Uploading').'</a>'); 42 42 43 43 $url = $file['url']; … … 277 277 278 278 default: 279 die(__('This script was not meant to be called directly.'));279 wp_die(__('This script was not meant to be called directly.')); 280 280 } 281 281
Note: See TracChangeset
for help on using the changeset viewer.