: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Render preview information for the image ad type
* @var string $src image source URL.
* @var string $alt alt attribute value.
* @var string $preview_hwstring width and height information for the smaller preview icon.
* @var string $tooltip_hwstring width and height information for the larger version in the tooltip.
<span class="advads-ad-list-tooltip">
<span class="advads-ad-list-tooltip-content">
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $hwstring is not something we can escape.
printf( '<img src="%s" alt="%s" %s/>', esc_url( $src ), esc_attr( $alt ), $tooltip_hwstring );
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $hwstring is not something we can escape.
printf( '<img src="%s" alt="%s" %s/>', esc_url( $src ), esc_attr( $alt ), $preview_hwstring );