Changeset 12588 for trunk/src/bp-core/classes/class-bp-attachment.php
- Timestamp:
- 03/28/2020 01:35:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-attachment.php
r12547 r12588 160 160 0 => __( 'The file was uploaded successfully', 'buddypress' ), 161 161 1 => __( 'The uploaded file exceeds the maximum allowed file size for this site', 'buddypress' ), 162 163 /* translators: %s: Max file size for the file */ 162 164 2 => sprintf( __( 'The uploaded file exceeds the maximum allowed file size of: %s', 'buddypress' ), size_format( $this->original_max_filesize ) ), 163 165 3 => __( 'The uploaded file was only partially uploaded.', 'buddypress' ), … … 501 503 502 504 if ( empty( $ext ) || empty( $supported_image_types[ $ext ] ) ) { 503 $wp_error->add( 'crop_error', sprintf( __( 'Cropping the file failed: %s is not a supported image file.', 'buddypress' ), $file['error'] ) ); 505 $wp_error->add( 506 'crop_error', 507 sprintf( 508 /* translators: %s: image file extension */ 509 __( 'Cropping the file failed: %s is not a supported image file.', 'buddypress' ), 510 $file['error'] 511 ) 512 ); 513 504 514 return $wp_error; 505 515 }
Note: See TracChangeset
for help on using the changeset viewer.