Skip to content

Commit

Permalink
[BUGS-5759] Adjust logic for checking for options table (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Spellman authored Feb 27, 2023
1 parent 19fb607 commit 469432d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/general.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion php/pantheon/checks/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 469432d

Please sign in to comment.