Skip to content

Need to add support for database placeholder %i in $wpdb->prepare #10

@KTS915

Description

@KTS915

In version 6.2, WordPress introduced a new %i variable via changeset 55151. It is for use with $wpdb->prepare to safely escape table and column names in database queries.

While CP v2 inherited this update, neither WPCS nor CPCS has been updated. As a consequence, CPCS generates lots of errors when the new variable is used (e.g. in a plugin, which is where I have come across this). It would be great to have support added for the %i parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions