Skip to content

Commit 21faa53

Browse files
swissspidyCopilot
andauthored
Update src/Media_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b6979f6 commit 21faa53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Media_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public function import( $args, $assoc_args = array() ) {
420420
} else {
421421

422422
$destdir = Utils\get_flag_value( $assoc_args, 'destdir' );
423-
if ( is_string( $destdir ) && $destdir ) {
423+
if ( is_string( $destdir ) && $destdir && ! isset( $custom_upload_dir_filter ) ) {
424424
$custom_upload_dir_filter = $this->add_upload_dir_filter( $destdir );
425425
}
426426

0 commit comments

Comments
 (0)