Make WordPress Core

Changeset 11304


Ignore:
Timestamp:
05/12/2009 05:02:34 PM (18 years ago)
Author:
ryan
Message:

Update upload error strings. Props Askapache. fixes #9625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r11283 r11304  
    240240                '',
    241241                __( "Missing a temporary folder." ),
    242                 __( "Failed to write file to disk." ));
     242                __( "Failed to write file to disk." ),
     243                __( "File upload stopped by extension." ));
    243244
    244245        // All tests are on by default. Most can be turned off by $override[{test_name}] = false;
    … …  
    341342        // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error'].
    342343        $upload_error_strings = array( false,
    343                 __( "The file exceeds the <code>upload_max_filesize</code> directive in <code>php.ini</code>." ),
    344                 __( "The file exceeds the <em>MAX_FILE_SIZE</em> directive that was specified in the HTML form." ),
    345                 __( "The file was only partially uploaded." ),
    346                 __( "No file was sent." ),
     344                __( "The uploaded file exceeds the <code>upload_max_filesize</code> directive in <code>php.ini</code>." ),
     345                __( "The uploaded file exceeds the <em>MAX_FILE_SIZE</em> directive that was specified in the HTML form." ),
     346                __( "The uploaded file was only partially uploaded." ),
     347                __( "No file was uploaded." ),
     348                '',
    347349                __( "Missing a temporary folder." ),
    348                 __( "Failed to write file to disk." ));
     350                __( "Failed to write file to disk." ),
     351                __( "File upload stopped by extension." ));
    349352
    350353        // All tests are on by default. Most can be turned off by $override[{test_name}] = false;
Note: See TracChangeset for help on using the changeset viewer.