Changeset 45926 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 09/01/2019 05:12:43 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r45674 r45926 88 88 $template_data = implode( '', file( $file_path ) ); 89 89 if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name ) ) { 90 /* translators: %s: template name */ 90 91 return sprintf( __( '%s Page Template' ), _cleanup_header_comment( $name[1] ) ); 91 92 } … … 872 873 $error_path = basename( $uploads['basedir'] ) . $uploads['subdir']; 873 874 } 874 return $upload_error_handler( $file, sprintf( __( 'The uploaded file could not be moved to %s.' ), $error_path ) ); 875 return $upload_error_handler( 876 $file, 877 sprintf( 878 /* translators: %s: destination file path */ 879 __( 'The uploaded file could not be moved to %s.' ), 880 $error_path 881 ) 882 ); 875 883 } 876 884 } … … 1155 1163 } 1156 1164 1157 return new WP_Error( 'md5_mismatch', sprintf( __( 'The checksum of the file (%1$s) does not match the expected checksum value (%2$s).' ), bin2hex( $file_md5 ), bin2hex( $expected_raw_md5 ) ) ); 1165 return new WP_Error( 1166 'md5_mismatch', 1167 sprintf( 1168 /* translators: 1: file checksum, 2: expected checksum value */ 1169 __( 'The checksum of the file (%1$s) does not match the expected checksum value (%2$s).' ), 1170 bin2hex( $file_md5 ), 1171 bin2hex( $expected_raw_md5 ) 1172 ) 1173 ); 1158 1174 } 1159 1175
Note: See TracChangeset
for help on using the changeset viewer.