WordPress.org

Make WordPress Core

Ticket #9625: file.php.diff

File file.php.diff, 1.7 KB (added by Askapache, 6 years ago)

standards compliant (php4, php5, IETF) upload errors

  • file.php

     
    236236                __( "The uploaded file exceeds the <em>MAX_FILE_SIZE</em> directive that was specified in the HTML form." ), 
    237237                __( "The uploaded file was only partially uploaded." ), 
    238238                __( "No file was uploaded." ), 
    239                 '', 
    240239                __( "Missing a temporary folder." ), 
    241                 __( "Failed to write file to disk." )); 
     240                __( "Failed to write file to disk." ), 
     241                __( "File upload stopped by extension." )); 
    242242 
    243243        // All tests are on by default. Most can be turned off by $override[{test_name}] = false; 
    244244        $test_form = true; 
     
    339339 
    340340        // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error']. 
    341341        $upload_error_strings = array( false, 
    342                 __( "The file exceeds the <code>upload_max_filesize</code> directive in <code>php.ini</code>." ), 
    343                 __( "The file exceeds the <em>MAX_FILE_SIZE</em> directive that was specified in the HTML form." ), 
    344                 __( "The file was only partially uploaded." ), 
    345                 __( "No file was sent." ), 
     342                __( "The uploaded file exceeds the <code>upload_max_filesize</code> directive in <code>php.ini</code>." ), 
     343                __( "The uploaded file exceeds the <em>MAX_FILE_SIZE</em> directive that was specified in the HTML form." ), 
     344                __( "The uploaded file was only partially uploaded." ), 
     345                __( "No file was uploaded." ), 
    346346                __( "Missing a temporary folder." ), 
    347                 __( "Failed to write file to disk." )); 
     347                __( "Failed to write file to disk." ), 
     348                __( "File upload stopped by extension." )); 
    348349 
    349350        // All tests are on by default. Most can be turned off by $override[{test_name}] = false; 
    350351        $test_form = true;