Make WordPress Core

Ticket #33242: 33242.diff

File 33242.diff, 2.1 KB (added by jackreichert, 9 years ago)

Proposed language change implementation.

  • src/wp-admin/includes/file.php

    diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
    index 079e1ae..09b01e1 100644
    function _wp_handle_upload( &$file, $overrides, $time, $action ) { 
    349349                        $file['name'] = $proper_filename;
    350350                }
    351351                if ( ( ! $type || !$ext ) && ! current_user_can( 'unfiltered_upload' ) ) {
    352                         return call_user_func_array( $upload_error_handler, array( &$file, __( 'Sorry, this file type is not permitted for security reasons.' ) ) );
     352                        return call_user_func_array( $upload_error_handler, array( &$file, __( 'Sorry, this file type is not permitted for upload.' ) ) );
    353353                }
    354354                if ( ! $type ) {
    355355                        $type = $file['type'];
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index 292abf9..514d167 100644
    function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { 
    21342134
    21352135        $wp_filetype = wp_check_filetype( $name );
    21362136        if ( ! $wp_filetype['ext'] && ! current_user_can( 'unfiltered_upload' ) )
    2137                 return array( 'error' => __( 'Invalid file type' ) );
     2137                return array( 'error' => __( 'Sorry, this file type is not permitted for upload.' ) );
    21382138
    21392139        $upload = wp_upload_dir( $time );
    21402140
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index e67997a..0bebc43 100644
    function wp_default_scripts( &$scripts ) { 
    278278                'queue_limit_exceeded' => __('You have attempted to queue too many files.'),
    279279                'file_exceeds_size_limit' => __('%s exceeds the maximum upload size for this site.'),
    280280                'zero_byte_file' => __('This file is empty. Please try another.'),
    281                 'invalid_filetype' => __('This file type is not allowed. Please try another.'),
     281                'invalid_filetype' => __('Sorry, this file type is not permitted for upload.'),
    282282                'not_an_image' => __('This file is not an image. Please try another.'),
    283283                'image_memory_exceeded' => __('Memory exceeded. Please try another smaller file.'),
    284284                'image_dimensions_exceeded' => __('This is larger than the maximum size. Please try another.'),