Skip to content

Commit 4aec1f2

Browse files
committed
chore: use is_completed_offload for checking if the attachment is offloaded
1 parent 3e7f44f commit 4aec1f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/url_replacer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ private function is_offloaded_url( $source_url ) {
393393
return 0;
394394
}
395395

396-
if ( empty( get_post_meta( $attachment_id, Optml_Media_Offload::OM_OFFLOADED_FLAG, true ) ) ) {
396+
if ( ! $this->is_completed_offload( $attachment_id ) ) {
397397
return 0;
398398
}
399399

0 commit comments

Comments
 (0)