PluginProbe
SQLite Database Integration / 3.1.0
SQLite Database Integration v3.1.0
3.1.0 3.0.2 3.0.1 trunk 2.1.13 2.1.14 2.1.15 2.1.16 2.2.0 2.2.1 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.17 2.2.18 2.2.19 2.2.2 2.2.20 2.2.21 2.2.22 2.2.23 All 33 releases
← All changes | health-check.php +4 -5 2.2.13 → 3.1.0 View file →
@@ -1,10 +1,7 @@
1 1 <?php
2 2 /**
3 3 * Tweaks for the health-check screens.
4 - *
5 - * @since 1.0.0
6 - * @package wp-sqlite-integration
7 4 */
8 5
9 6 /**
10 7 * Filter debug data in site-health screen.
@@ -35,15 +32,17 @@
35 32 );
36 33
37 34 $info['wp-database']['fields']['database_file'] = array(
38 35 'label' => __( 'Database file', 'sqlite-database-integration' ),
39 - 'value' => FQDB,
36 + 'value' => DB_PATH,
40 37 'private' => true,
41 38 );
42 39
43 40 $info['wp-database']['fields']['database_size'] = array(
44 41 'label' => __( 'Database size', 'sqlite-database-integration' ),
45 - 'value' => size_format( filesize( FQDB ) ),
42 + 'value' => ':memory:' === DB_PATH
43 + ? __( 'Not available', 'sqlite-database-integration' )
44 + : size_format( filesize( DB_PATH ) ),
46 45 );
47 46
48 47 unset( $info['wp-database']['fields']['extension'] );
49 48 unset( $info['wp-database']['fields']['server_version'] );