Skip to content

Commit 58638e6

Browse files
author
Marco Pereirinha
committed
Update comment
1 parent 122c3df commit 58638e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

php/class-media.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,10 +1508,10 @@ private function create_attachment( $asset, $public_id ) {
15081508
$this->update_post_meta( $attachment_id, Sync::META_KEYS['transformation'], $asset['transformations'] );
15091509
}
15101510

1511-
// Create a trackable key in post meta to allow getting public id from URL with transformations.
1511+
// Create a trackable key in post meta to allow getting the attachment id from URL with transformations.
15121512
update_post_meta( $attachment_id, '_' . md5( $sync_key ), true );
15131513

1514-
// Create a trackable key in post meta to allow getting public id from URL.
1514+
// Create a trackable key in post meta to allow getting the attachment id from URL.
15151515
update_post_meta( $attachment_id, '_' . md5( 'base_' . $public_id ), true );
15161516

15171517
// capture the delivery type.

php/sync/class-upload-sync.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ function ( $is_synced, $post_id ) use ( $attachment_id ) {
283283
// Set the delivery type.
284284
$this->media->update_post_meta( $attachment_id, Sync::META_KEYS['delivery'], $result['type'] );
285285

286-
// Create a trackable key in post meta to allow getting public id from URL with transformations.
286+
// Create a trackable key in post meta to allow getting the attachment id from URL with transformations.
287287
update_post_meta( $attachment_id, '_' . md5( $options['public_id'] ), true );
288288

289-
// Create a trackable key in post meta to allow getting public id from URL.
289+
// Create a trackable key in post meta to allow getting the attachment id from URL.
290290
update_post_meta( $attachment_id, '_' . md5( 'base_' . $options['public_id'] ), true );
291291

292292
// Update signature for all that use the same method.

0 commit comments

Comments
 (0)