We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
public_id
1 parent f221e9e commit 725fe54Copy full SHA for 725fe54
php/class-delivery.php
@@ -329,8 +329,12 @@ public function generate_signature( $attachment_id ) {
329
if ( ! $sql ) {
330
$sql = Utils::get_table_sql();
331
}
332
+ $public_id = null;
333
+ $relationship = Relationship::get_relationship( $attachment_id );
334
+ if ( $relationship instanceof Relationship ) {
335
+ $public_id = $relationship->public_id;
336
+ }
337
$sizes = $this->get_sized( $attachment_id );
- $public_id = $this->media->has_public_id( $attachment_id ) ? $this->media->get_public_id( $attachment_id ) : null;
338
$settings_signature = self::get_settings_signature();
339
$relation_signature = $this->media->get_post_meta( $attachment_id, Sync::META_KEYS['relationship'], true );
340
0 commit comments