PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/helpers/wpdb-helper.php +3 -3 18.428.5 View file →
@@ -18,9 +18,9 @@
18 18
19 19 /**
20 20 * Constructs a Wpdb_Helper instance.
21 21 *
22 - * @param param wpdb $wpdb The WordPress database instance.
22 + * @param wpdb $wpdb The WordPress database instance.
23 23 */
24 24 public function __construct( wpdb $wpdb ) {
25 25 $this->wpdb = $wpdb;
26 26 }
@@ -32,11 +32,11 @@
32 32 *
33 33 * @return bool Whether the table exists.
34 34 */
35 35 public function table_exists( $table ) {
36 - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Reason: There is no unescaped user input.
36 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Reason: There is no unescaped user input.
37 37 $table_exists = $this->wpdb->get_var( "SHOW TABLES LIKE '{$table}'" );
38 - if ( \is_wp_error( $table_exists ) || \is_null( $table_exists ) ) {
38 + if ( \is_wp_error( $table_exists ) || $table_exists === null ) {
39 39 return false;
40 40 }
41 41
42 42 return true;