From 37960dcd387004f66ec39183eb5464fbb2f74db4 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 24 Feb 2018 10:57:39 -0500 Subject: [PATCH] Add backward compatibility test --- include/site-health.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/site-health.php b/include/site-health.php index 067524a6..f6692d66 100644 --- a/include/site-health.php +++ b/include/site-health.php @@ -208,6 +208,13 @@ if (!function_exists('run_site_probe')) { $time ); + if (isset($data->addons)) { + $addons = $data->addons; + } else { + // Backward compatibility + $addons = $data->plugins; + } + //Update any health calculations or otherwise processed data. $parsedDataQuery .= sprintf( "`dt_last_seen` = NOW(),