use of %i shows error UnsupportedIdentifierPlaceholder in wordpress 6.7.2
-
Hello Members
I am developing a plugin and before submitting to the repository, I am testing it with “plugin checker”. I am using wordpress version 6.7.2. Still it shows error like below.
WordPress.DB.PreparedSQLPlaceholders.UnsupportedIdentifierPlaceholder
The %i modifier is only supported in WP 6.2 or higher. Found: “%i”.
My query is like this :$table_name = $this->table_prefix . LSFW_TABLE_APPLICATIONS;
$query = $wpdb->prepare("SELECT * FROM %i ORDER BY id DESC LIMIT 1", $table_name);
$row = $wpdb->get_row($query);I am really frustrated with this plugin, because of so many false positive. Suggest me how to proceed. Since i have to wait longer after the plugin submission to get the feedback from plugin reviewer.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.