Skip to content

PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage false positive for non-attachments #985

Open
@kkmuffme

Description

@kkmuffme

When the src uses plugins_url() (or probably any code that doesn't contain the WP "UPLOADS" constant) it shouldn't report an error.
e.g.

$text .= '<img src="' . esc_url( plugins_url( 'assets/images/paypal.png', __FILE__ ) ) . '" width="50" alt="PayPal">';

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions