Skip to content

Images in plugin used with img get marked as errors #757

Open

Description

Related to this sniff:

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Team] PerformanceIssues owned by Performance Team[Type] BugAn existing feature is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions