X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..febc815b2c9d85be5717da9e8d164bd2daa97e31:/wp-admin/media-upload.php diff --git a/wp-admin/media-upload.php b/wp-admin/media-upload.php index 0c9c5e25..5f87301e 100644 --- a/wp-admin/media-upload.php +++ b/wp-admin/media-upload.php @@ -16,7 +16,7 @@ if ( ! isset( $_GET['inline'] ) ) require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'upload_files' ) ) { - wp_die( __( 'You do not have permission to upload files.' ), 403 ); + wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 ); } wp_enqueue_script('plupload-handlers'); @@ -43,7 +43,7 @@ if ( isset( $action ) && $action == 'edit' && !$ID ) { if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) { wp_die( '
' . __( 'You are not allowed to edit this item.' ) . '
', + '' . __( 'Sorry, you are not allowed to edit this item.' ) . '
', 403 ); } @@ -53,7 +53,7 @@ if ( isset($_GET['type']) ) { $type = strval($_GET['type']); } else { /** - * Filter the default media upload type in the legacy (pre-3.5.0) media popup. + * Filters the default media upload type in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 * @@ -68,7 +68,7 @@ if ( isset($_GET['tab']) ) { $tab = strval($_GET['tab']); } else { /** - * Filter the default tab in the legacy (pre-3.5.0) media popup. + * Filters the default tab in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 *