Skip to content

Commit

Permalink
Use wp->prefix to get table prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
John Spellman committed Feb 22, 2023
1 parent cef5051 commit c27e6c4
Showing 1 changed file with 1 addition and 1 deletion.
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 ( $wpdb->prefix . 'options' ) {
$options_table = $table;
break;
}
Expand Down

0 comments on commit c27e6c4

Please sign in to comment.