Skip to content

Commit

Permalink
Fix PHP Warning by adding a db_server_info() method
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Sep 22, 2022
1 parent 0edf6b6 commit 206cccc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/wp-includes/sqlite/class-wp-sqlite-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,4 +314,15 @@ public function has_cap( $db_cap ) {
public function db_version() {
return '5.5';
}

/**
* Retrieves full database server information.
*
* @since 5.5.0
*
* @return string|false Server info on success, false on failure.
*/
public function db_server_info() {
return SQLite3::version()['versionString'];
}
}

0 comments on commit 206cccc

Please sign in to comment.