We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
composer lint
1 parent 1f197a2 commit 0b37c70Copy full SHA for 0b37c70
tests/phpunit/tests/meta/bulkAddMetadata.php
@@ -211,16 +211,15 @@ private static function get_autoincrement( string $meta_type ): int {
211
global $wpdb;
212
213
$table = "{$meta_type}meta";
214
- $sql = '
215
- SELECT AUTO_INCREMENT
216
- FROM INFORMATION_SCHEMA.TABLES
217
- WHERE TABLE_SCHEMA = DATABASE()
218
- AND TABLE_NAME = %s
219
- ';
220
221
return (int) $wpdb->get_var(
222
$wpdb->prepare(
223
- $sql,
+ '
+ SELECT AUTO_INCREMENT
+ FROM INFORMATION_SCHEMA.TABLES
+ WHERE TABLE_SCHEMA = DATABASE()
+ AND TABLE_NAME = %s
+ ',
224
$wpdb->$table
225
)
226
);
0 commit comments