]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/async-upload.php
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-admin / async-upload.php
index 371a65d305591cb3c8ef3fe0d24ad306ab761533..4022b523a38230a21331e434d26bf18e197e3400 100644 (file)
@@ -45,7 +45,7 @@ if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action']
 }
 
 if ( ! current_user_can( 'upload_files' ) ) {
 }
 
 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
 }
 
 // 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 ) )
        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 :
 
        switch ( $_REQUEST['fetch'] ) {
                case 3 :
@@ -105,7 +105,7 @@ if ( $_REQUEST['short'] ) {
        $type = $_REQUEST['type'];
 
        /**
        $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.
         *
         * The dynamic portion of the hook name, `$type`, refers to the attachment type,
         * such as 'image', 'audio', 'video', 'file', etc.