prepare( 'SHOW TABLES LIKE %s', $storage->get_table_name() ); if ( $wpdb->get_var( $query ) !== $storage->get_table_name() ) { self::set_inaccessible(); return false; } self::set_accessible(); return true; } /** * Returns the name of the transient. * * @return string The name of the transient to use. */ protected static function transient_name() { return 'wpseo_link_table_inaccessible'; } /* ********************* DEPRECATED METHODS ********************* */ /** * Checks if the table exists if not, set the transient to indicate the inaccessible table. * * @deprecated 6.0 * @codeCoverageIgnore * * @return bool True if table is accessible. */ public static function check_table_is_accessible() { _deprecated_function( __FUNCTION__, '6.0', __CLASS__ . '::is_accessible' ); return self::is_accessible(); } }