Skip to content

Commit

Permalink
Update docblocks return type comment and add since annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ink0 committed Jan 6, 2025
1 parent cdb3bbc commit 8aa6f89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/webp-uploads/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,12 @@ function webp_uploads_remove_sources_files( int $attachment_id ): void {
/**
* Filters `wp_content_img_tag` to update images so that they use the preferred MIME type where possible.
*
* @since n.e.x.t
*
* @param string $filtered_image Full img tag with attributes that will replace the source img tag.
* @param string $context Additional context, like the current filter name or the function name from where this was called.
* @param int $attachment_id The image attachment ID. May be 0 in case the image is not an attachment.
* @return string The content with the updated references to the images.
* @return string The updated IMG tag with references to the new MIME type if available.
*/
function webp_uploads_filter_image_tag( string $filtered_image, string $context, int $attachment_id ): string {
// Bail early if request is not for the frontend.
Expand Down

0 comments on commit 8aa6f89

Please sign in to comment.