WordPress.org

Make WordPress Core

Ticket #48869: 48869.patch

File 48869.patch, 1.0 KB (added by ramiy, 10 months ago)
  • wp-admin/includes/file.php

     
    764764                // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error'].
    765765                $upload_error_strings = array(
    766766                        false,
    767                         __( 'The uploaded file exceeds the upload_max_filesize directive in php.ini.' ),
    768                         __( 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.' ),
     767                        sprintf(
     768                                /* translators: 1: upload_max_filesize 2: php.ini */
     769                                __( 'The uploaded file exceeds the %1$s directive in %2$s.' ),
     770                                'upload_max_filesize',
     771                                'php.ini'
     772                        ),
     773                        sprintf(
     774                                /* translators: %s: MAX_FILE_SIZE */
     775                                __( 'The uploaded file exceeds the %s directive that was specified in the HTML form.' ),
     776                                'MAX_FILE_SIZE'
     777                        ),
    769778                        __( 'The uploaded file was only partially uploaded.' ),
    770779                        __( 'No file was uploaded.' ),
    771780                        '',