Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MariaDB generating error when we are using %s as placeholder for table name when CS(code sniffer) suggest to used %s instead %i #2434

Closed
crathod-io opened this issue Mar 20, 2024 · 3 comments

Comments

@crathod-io
Copy link

ERROR WordPress.DB.PreparedSQLPlaceholders.UnsupportedIdentifierPlaceholder

The %i modifier is only supported in WP 6.2 or higher. Found: "%i".

@swissspidy
Copy link
Member

Since you came here from WordPress Trac, I am repeating my questions here:

Where is this error being reported? In WordPress core?

If not, you should report such things to the affected plugin or theme. If this happens in your own project, the error message is pretty self-explanatory. "%i" is only supported on WP 6.2+, so if you support older versions you need to fall back to something else.

@crathod-io
Copy link
Author

crathod-io commented Mar 20, 2024

@swissspidy apologies. it was generated in this repo or plugin: https://github.com/WordPress/plugin-check/

@crathod-io
Copy link
Author

@swissspidy I'm going to close this ticket.

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

No branches or pull requests

3 participants