We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e372742 + 5048488 commit 335cc4dCopy full SHA for 335cc4d
1 file changed
src/admin/class-metadata.php
@@ -155,13 +155,13 @@ public function save_metadata( $request ) {
155
}
156
157
if ( ! empty( $entry ) ) {
158
+ // Add our metadata key to note that this was optimized during upload.
159
+ $entry['optimized_during_upload'] = true;
160
+
161
$sanitized_metadata[] = $entry;
162
163
164
- // Add our metadata key to note that this was optimized during upload.
- $sanitized_metadata['optimized_during_upload'] = true;
-
165
// Save to a transient queue for metadata waiting for attachment creation
166
$transient_key = 'cimo_metadata_queue';
167
$queue = get_transient( $transient_key );
0 commit comments