Skip to content

Commit

Permalink
Update function docs to clarify attachment specific scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Nov 18, 2024
1 parent c0b392f commit 384a841
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/webp-uploads/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,9 @@ function webp_uploads_get_mime_type_image( int $attachment_id, string $src, stri
}

/**
* Retrieves the MIME type of a file, checking the file directly if possible,
* and falling back to the attachment's MIME type if needed.
* Retrieves the MIME type of an attachment file, checking the file directly if possible.
*
* If checking the file directly fails, the function falls back to the attachment's MIME type.
*
* The function attempts to determine the MIME type directly from the file.
* If that information is unavailable, it uses the MIME type from the attachment metadata.
Expand Down

0 comments on commit 384a841

Please sign in to comment.