diff --git a/assets/js/media-upload.js b/assets/js/media-upload.js index dc5156d4b..ded837ae2 100644 --- a/assets/js/media-upload.js +++ b/assets/js/media-upload.js @@ -53,7 +53,8 @@ jQuery(document).ready(function($) { if ( $preview.length ) { $preview.attr( 'src', attachment.url ); } - $( '.attachment-resolution, .attachment-resolution-warning' ).remove(); + + get_media_field( $( this ), $settings_wrapper, '.attachment-resolution, .attachment-resolution-warning' ).remove(); // Block the media upload UI until we have a response. $settings_wrapper.parent().block( { diff --git a/includes/settings/class-wcpdf-settings-callbacks.php b/includes/settings/class-wcpdf-settings-callbacks.php index 5b4536383..f377b36e9 100644 --- a/includes/settings/class-wcpdf-settings-callbacks.php +++ b/includes/settings/class-wcpdf-settings-callbacks.php @@ -429,7 +429,6 @@ public function multiple_checkboxes( $args ) { public function media_upload( $args ) { extract( $this->normalize_settings_args( $args ) ); - $id = $this->append_language( $id, $args ); $setting_name = $this->append_language( $setting_name, $args ); if( ! empty( $current ) && $attachment = wp_get_attachment_image_src( $current, 'full', false ) ) {