From 469432d30111774ccad8c256daacdc416c9e9066 Mon Sep 17 00:00:00 2001
From: John Spellman <john.spellman@pantheon.io>
Date: Mon, 27 Feb 2023 09:12:58 -0700
Subject: [PATCH] [BUGS-5759] Adjust logic for checking for options table
 (#137)

---
 features/general.feature         | 2 +-
 php/pantheon/checks/database.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/features/general.feature b/features/general.feature
index aca3579..8d95516 100644
--- a/features/general.feature
+++ b/features/general.feature
@@ -49,7 +49,7 @@ Feature: General tests of WP Launch Check
     # This check is here to remind us to update versions when new releases are available.
     Then STDOUT should contain:
       """
-      6.0
+      6.1.1
       """
 
     When I run `wp launchcheck general`
diff --git a/php/pantheon/checks/database.php b/php/pantheon/checks/database.php
index 16a9146..c94dfc6 100644
--- a/php/pantheon/checks/database.php
+++ b/php/pantheon/checks/database.php
@@ -44,7 +44,7 @@ protected function countRows() {
 		global $wpdb;
 		foreach ( $this->getTables() as $table ) {
 			$this->tables[$table->TABLE_NAME] = $table;
-			if ( preg_match( "#.*_options#s", $table->TABLE_NAME ) ) { 
+			if ( $table->TABLE_NAME === $wpdb->prefix . 'options' ) { 
 				$options_table = $table;
 				break;
 			}