Skip to content

Commit

Permalink
Add a mock function for db_server_info to prevent calls to mysql_get_…
Browse files Browse the repository at this point in the history
…server_info PHP function (#63)
  • Loading branch information
nateweller authored Feb 16, 2023
1 parent 84d9fe0 commit f5659d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dbless-wpdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ public function has_cap( $db_cap ) {
public function db_version() {
return '10';
}

public function db_server_info() {
return false;
}
}

global $wpdb;
Expand Down

0 comments on commit f5659d8

Please sign in to comment.