Skip to content

Prepared SQL sniff: support array_map() #1046

Open
@Chouby

Description

@Chouby

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions