Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -33,7 +33,7 @@ class Wpdb_Helper {
|
||||
* @return bool Whether the table exists.
|
||||
*/
|
||||
public function table_exists( $table ) {
|
||||
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Reason: There is no unescaped user input.
|
||||
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Reason: There is no unescaped user input.
|
||||
$table_exists = $this->wpdb->get_var( "SHOW TABLES LIKE '{$table}'" );
|
||||
if ( \is_wp_error( $table_exists ) || \is_null( $table_exists ) ) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user