Changeset 42827 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 03/11/2018 04:43:59 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/ms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r42343 r42827 33 33 $file_size = filesize( $file['tmp_name'] ); 34 34 if ( $space_left < $file_size ) { 35 /* translators: 1: Required disk space in kilobytes */36 $file['error'] = sprintf( __( 'Not enough space to upload. % 1$s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) );35 /* translators: %s: required disk space in kilobytes */ 36 $file['error'] = sprintf( __( 'Not enough space to upload. %s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) ); 37 37 } 38 38 39 39 if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) { 40 /* translators: 1: Maximum allowed file size in kilobytes */41 $file['error'] = sprintf( __( 'This file is too big. Files must be less than % 1$s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) );40 /* translators: %s: maximum allowed file size in kilobytes */ 41 $file['error'] = sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) ); 42 42 } 43 43
Note: See TracChangeset
for help on using the changeset viewer.