Skip to content

Commit 335cc4d

Browse files
authored
fix: add optimized_during_upload in invididual media entry instead
fix: add optimized_during_upload in invididual media entry instead
2 parents e372742 + 5048488 commit 335cc4d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/admin/class-metadata.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ public function save_metadata( $request ) {
155155
}
156156
}
157157
if ( ! empty( $entry ) ) {
158+
// Add our metadata key to note that this was optimized during upload.
159+
$entry['optimized_during_upload'] = true;
160+
158161
$sanitized_metadata[] = $entry;
159162
}
160163
}
161164

162-
// Add our metadata key to note that this was optimized during upload.
163-
$sanitized_metadata['optimized_during_upload'] = true;
164-
165165
// Save to a transient queue for metadata waiting for attachment creation
166166
$transient_key = 'cimo_metadata_queue';
167167
$queue = get_transient( $transient_key );

0 commit comments

Comments
 (0)