Skip to content

Commit 69b4220

Browse files
rootroot
authored andcommitted
PHPCS Changes
1 parent 8060280 commit 69b4220

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/phpunit/tests/admin/includesUpgrade.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ private function drop_test_tables() {
111111
return;
112112
}
113113

114-
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
115-
$wpdb->query( 'DROP TABLE IF EXISTS ' . implode( ', ', $tables ) );
114+
$wpdb->query(
115+
$wpdb->prepare(
116+
'DROP TABLE IF EXISTS ' . implode( ', ', array_fill( 0, count( $tables ), '%i' ) ),
117+
$tables
118+
)
119+
);
120+
116121
}
117122
}

0 commit comments

Comments
 (0)