~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/media.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:49:28 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: barry.price@canonical.com-20160817044928-viijiwb4tl8jwzmp
new upstream release 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
        check_admin_referer('media-form');
21
21
 
22
22
        if ( !current_user_can('edit_post', $attachment_id) )
23
 
                wp_die ( __('You are not allowed to edit this attachment.') );
 
23
                wp_die ( __('Sorry, you are not allowed to edit this attachment.') );
24
24
 
25
25
        $errors = media_upload_form_handler();
26
26
 
54
54
        $att_id = (int) $_GET['attachment_id'];
55
55
 
56
56
        if ( !current_user_can('edit_post', $att_id) )
57
 
                wp_die ( __('You are not allowed to edit this attachment.') );
 
57
                wp_die ( __('Sorry, you are not allowed to edit this attachment.') );
58
58
 
59
59
        $att = get_post($att_id);
60
60