Skip to content

Commit 7dc7fc8

Browse files
fix: reuse existing i18n string for MIME type mismatch error
Agent-Logs-Url: https://github.com/Codeinwp/optimole-wp/sessions/a9c6ff77-c741-4d3d-9004-4d12974a746f Co-authored-by: vytisbulkevicius <36594177+vytisbulkevicius@users.noreply.github.com>
1 parent e22772f commit 7dc7fc8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

inc/media_rename/attachment_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function replace_file() {
360360

361361
$original_mime = get_post_mime_type( $id );
362362
if ( $file_info['type'] !== $original_mime ) {
363-
wp_send_json_error( __( 'Uploaded file type does not match the original attachment', 'optimole-wp' ) );
363+
wp_send_json_error( __( 'The uploaded file type does not match the original file type.', 'optimole-wp' ) );
364364
}
365365

366366
$replacer = new Optml_Attachment_Replace( $id, $_FILES['file'] );

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)