Skip to content

fix: use correct meta key for attachment uid#2116

Merged
alecszaharia merged 2 commits intodevelopfrom
fix/attachment-uid-meta-key
Apr 2, 2026
Merged

fix: use correct meta key for attachment uid#2116
alecszaharia merged 2 commits intodevelopfrom
fix/attachment-uid-meta-key

Conversation

@golovencoserghei
Copy link
Copy Markdown
Collaborator

get_attachment_key() was reading brizy_post_uid which stores the page uid, not the file uid. Changed to brizy_attachment_uid which is the correct per-file unique identifier.

get_attachment_key() was reading brizy_post_uid which stores the
page uid, not the file uid. Changed to brizy_attachment_uid which
is the correct per-file unique identifier.
…t lookup

get_attachment_key() was reading brizy_post_uid which stores the parent
post UID (shared across all attachments on the same page), causing all
file lookups to return the first attachment found.

Also fixed attachment-proxy.php to prioritize brizy_attachment_uid over
brizy_post_uid when resolving attachments.
@alecszaharia alecszaharia merged commit 4d90c11 into develop Apr 2, 2026
@golovencoserghei golovencoserghei deleted the fix/attachment-uid-meta-key branch April 2, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants