Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
home
/
ophq1335
/
www
/
wp-content
/
plugins
/
wp-seopress
/
src
/
Core
/
Table
/
/home/ophq1335/www/wp-content/plugins/wp-seopress/src/Core/Table/QueryExistTable.php
<?php // phpcs:ignore namespace SEOPress\Core\Table; defined( 'ABSPATH' ) || exit; use SEOPress\Models\Table\TableInterface; /** * QueryExistTable */ class QueryExistTable { /** * The exist function. * * @param TableInterface $table The table. * * @return bool */ public function exist( TableInterface $table ) { global $wpdb; $query = "SHOW TABLES LIKE '{$wpdb->prefix}{$table->getName()}'"; try { $result = $wpdb->query( $query ); // phpcs:ignore -- TODO: prepare and use placeholder. if ( 0 === $result ) { return false; } return true; } catch ( \Exception $e ) { return false; } } }