]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/upload.php
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-admin / upload.php
index a71280f7e30d1a6a6337c98f442ab38b4b56b0ea..b9495ac059a256da1017e7cbbc85cbb0eb891f85 100644 (file)
@@ -10,7 +10,7 @@
 require_once( dirname( __FILE__ ) . '/admin.php' );
 
 if ( !current_user_can('upload_files') )
 require_once( dirname( __FILE__ ) . '/admin.php' );
 
 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.' ) );
 
 $mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid';
 $modes = array( 'grid', 'list' );
 
 $mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid';
 $modes = array( 'grid', 'list' );
@@ -132,7 +132,7 @@ if ( $doaction ) {
                                break;
                        foreach ( (array) $post_ids as $post_id ) {
                                if ( !current_user_can( 'delete_post', $post_id ) )
                                break;
                        foreach ( (array) $post_ids as $post_id ) {
                                if ( !current_user_can( 'delete_post', $post_id ) )
-                                       wp_die( __( 'You are not allowed to move this item to the Trash.' ) );
+                                       wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) );
 
                                if ( !wp_trash_post( $post_id ) )
                                        wp_die( __( 'Error in moving to Trash.' ) );
 
                                if ( !wp_trash_post( $post_id ) )
                                        wp_die( __( 'Error in moving to Trash.' ) );
@@ -144,7 +144,7 @@ if ( $doaction ) {
                                break;
                        foreach ( (array) $post_ids as $post_id ) {
                                if ( !current_user_can( 'delete_post', $post_id ) )
                                break;
                        foreach ( (array) $post_ids as $post_id ) {
                                if ( !current_user_can( 'delete_post', $post_id ) )
-                                       wp_die( __( 'You are not allowed to move this item out of the Trash.' ) );
+                                       wp_die( __( 'Sorry, you are not allowed to restore this item from the Trash.' ) );
 
                                if ( !wp_untrash_post( $post_id ) )
                                        wp_die( __( 'Error in restoring from Trash.' ) );
 
                                if ( !wp_untrash_post( $post_id ) )
                                        wp_die( __( 'Error in restoring from Trash.' ) );
@@ -156,7 +156,7 @@ if ( $doaction ) {
                                break;
                        foreach ( (array) $post_ids as $post_id_del ) {
                                if ( !current_user_can( 'delete_post', $post_id_del ) )
                                break;
                        foreach ( (array) $post_ids as $post_id_del ) {
                                if ( !current_user_can( 'delete_post', $post_id_del ) )
-                                       wp_die( __( 'You are not allowed to delete this item.' ) );
+                                       wp_die( __( 'Sorry, you are not allowed to delete this item.' ) );
 
                                if ( !wp_delete_attachment( $post_id_del ) )
                                        wp_die( __( 'Error in deleting.' ) );
 
                                if ( !wp_delete_attachment( $post_id_del ) )
                                        wp_die( __( 'Error in deleting.' ) );