You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR | PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage | Images should be added using wp_get_attachment_image() or similar functions
The problem here is that plugins have their own <img src="<?php echo esc_url( $image_from_plugin) ); ?>" ... /> image tags output. These trigger the ERROR which seems like it should be a WARNING perhaps?
The text was updated successfully, but these errors were encountered:
Related to this sniff:
plugin-check/phpcs-sniffs/PluginCheck/Sniffs/CodeAnalysis/ImageFunctionsSniff.php
Line 62 in 02aeb3e
The problem here is that plugins have their own
<img src="<?php echo esc_url( $image_from_plugin) ); ?>" ... />
image tags output. These trigger theERROR
which seems like it should be aWARNING
perhaps?The text was updated successfully, but these errors were encountered: