X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-admin/async-upload.php diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php index 371a65d3..4022b523 100644 --- a/wp-admin/async-upload.php +++ b/wp-admin/async-upload.php @@ -45,7 +45,7 @@ if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] } if ( ! current_user_can( 'upload_files' ) ) { - wp_die( __( 'You do not have permission to upload files.' ) ); + wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); } // just fetch the detail form for that attachment @@ -54,7 +54,7 @@ if ( isset($_REQUEST['attachment_id']) && ($id = intval($_REQUEST['attachment_id if ( 'attachment' != $post->post_type ) wp_die( __( 'Unknown post type.' ) ); if ( ! current_user_can( 'edit_post', $id ) ) - wp_die( __( 'You are not allowed to edit this item.' ) ); + wp_die( __( 'Sorry, you are not allowed to edit this item.' ) ); switch ( $_REQUEST['fetch'] ) { case 3 : @@ -105,7 +105,7 @@ if ( $_REQUEST['short'] ) { $type = $_REQUEST['type']; /** - * Filter the returned ID of an uploaded attachment. + * Filters the returned ID of an uploaded attachment. * * The dynamic portion of the hook name, `$type`, refers to the attachment type, * such as 'image', 'audio', 'video', 'file', etc.