Bug Description
In any of our blogs;
Uncaught Error: webp_uploads_filter_wp_get_attachment_image(): Argument #5 ($attr) must be of type array, string given, called in /wp-includes/class-wp-hook.php on line 341
in /wp-content/plugins/webp-uploads/hooks.php on line 593
Call stack:
webp_uploads_filter_wp_get_attachment_image()
wp-includes/class-wp-hook.php:341
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-includes/media.php:1215
wp_get_attachment_image()
wp-content/themes/[redacted]/content-single-blog.php:35
require('/[redacted]...tent-single-blog.php')
wp-includes/template.php:816
load_template()
wp-includes/template.php:749
locate_template()
wp-includes/general-template.php:206
get_template_part()
wp-content/themes/[redacted]/single.php:30
include('/[redacted]/single.php')
wp-includes/template-loader.php:132
require_once('/[redacted]/template-loader.php')
wp-blog-header.php:19
require('/[redacted]/wp-blog-header.php')
index.php:17
Additional Context
- PHP Version: 8.3.31
- Plugin Version: v2.7.0
reverting back to v2.6.1 solves the issue
quite sure it has something to do with: "Rewrite img tags output by wp_get_attachment_image(). (2451)"
line 35 in wp-content/themes/[redacted]/content-single-blog.php:35 looks like this;
<?php
/**
* The template for displaying content in the single.php template.
*
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<div class="flex">
<div class="left">
<?= wp_get_attachment_image(get_post_thumbnail_id(), 'large'); ?>
Bug Description
In any of our blogs;
Call stack:
Additional Context
reverting back to v2.6.1 solves the issue
quite sure it has something to do with: "Rewrite img tags output by wp_get_attachment_image(). (2451)"
line 35 in wp-content/themes/[redacted]/content-single-blog.php:35 looks like this;