Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoPavlinic98 committed Apr 5, 2024
1 parent 7668dc5 commit 25a1b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/js/media-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( {
Expand Down
1 change: 0 additions & 1 deletion includes/settings/class-wcpdf-settings-callbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit 25a1b9e

Please sign in to comment.