Skip to content

Commit

Permalink
Added alt text to wp_postmeta for attachments when enabling thumbnails (
Browse files Browse the repository at this point in the history
  • Loading branch information
MFMarkus authored Oct 23, 2024
1 parent c51e22b commit fc3f386
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ function mfn_upsert_thumbnails($post_id, $attachments)
}
add_post_meta($attachment_id, MFN_POST_TYPE . "_attachment_url", $a->url);
add_post_meta($attachment_id, MFN_POST_TYPE . "_attachment_proxied_url", $a->proxied_url);
add_post_meta($attachment_id, '_wp_attachment_image_alt', $file_title);
}
if ($thumbnail_attachment_id === 0) {
$thumbnail_attachment_id = $attachment_id;
Expand Down

0 comments on commit fc3f386

Please sign in to comment.