Skip to content

Commit

Permalink
Add first and last version to the site health info
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Mar 23, 2024
1 parent 28f2c50 commit dd9189c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions classes/PodsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4599,10 +4599,18 @@ public function add_debug_information( $info ) {
'label' => 'Pods',
'description' => __( 'Debug information for Pods installations.', 'pods' ),
'fields' => [
'pods-version' => [
'pods-version' => [
'label' => __( 'Pods Version', 'pods' ),
'value' => PODS_VERSION,
],
'pods-first-version' => [
'label' => __( 'Pods Version (First installed)', 'pods' ),
'value' => get_option( 'pods_framework_version_first', PODS_VERSION ),
],
'pods-last-version' => [
'label' => __( 'Pods Version (Last updated from)', 'pods' ),
'value' => get_option( 'pods_framework_version_last', PODS_VERSION ),
],
'pods-server-software' => [
'label' => __( 'Server Software', 'pods' ),
'value' => ! empty( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : 'N/A',
Expand Down Expand Up @@ -4691,7 +4699,7 @@ public function add_debug_information( $info ) {
'label' => __( 'Pods Relationship Table Enabled', 'pods' ),
'value' => ( pods_podsrel_enabled() ) ? __( 'Yes', 'pods' ) : __( 'No', 'pods' ),
],
'pods-relationship-table-status' => [
'pods-relationship-table-status' => [
'label' => __( 'Pods Relationship Table Count' ),
'value' => ( ! pods_tableless() ? number_format( (float) $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}podsrel" ) ) : 'No table' ),
],
Expand Down

0 comments on commit dd9189c

Please sign in to comment.