}
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
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 :
$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.