Skip to content

Prepared SQL sniff: support array_map() #1046

Open
@Chouby

Description

Hi,

intval is accepted as an SQL escaping function but it is most often used together with array_map.
In WPCS 0.12.0, the query at https://github.com/WordPress/WordPress/blob/4.8/wp-includes/taxonomy.php#L3330 gives the error:
Use placeholders and $wpdb->prepare(); found array_map

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions