diff --git a/class/class-mainwp-child-wordfence.php b/class/class-mainwp-child-wordfence.php index 9038626..2ebc044 100644 --- a/class/class-mainwp-child-wordfence.php +++ b/class/class-mainwp-child-wordfence.php @@ -9,8 +9,7 @@ * * The code is used for the MainWP Wordfence Extension * Extension URL: https://mainwp.com/extension/wordfence/ - * -*/ + */ class MainWP_Child_Wordfence { public static $instance = null; @@ -1792,7 +1791,7 @@ class MainWP_Child_Wordfence { $data['whitelistedURLParams'] = array(); foreach ( $whitelistedURLParams as $urlParamKey => $rules ) { list( $path, $paramKey ) = explode( '|', $urlParamKey ); - $whitelistData = null; + $whitelistData = null; foreach ( $rules as $ruleID => $whitelistedData ) { if ( null === $whitelistData ) { $whitelistData = $whitelistedData; @@ -1820,7 +1819,7 @@ class MainWP_Child_Wordfence { } $data['disabledRules'] = (array) wfWAF::getInstance()->getStorageEngine()->getConfig( 'disabledRules' ); - $lastUpdated = wfWAF::getInstance()->getStorageEngine()->getConfig( 'rulesLastUpdated' ); + $lastUpdated = wfWAF::getInstance()->getStorageEngine()->getConfig( 'rulesLastUpdated' ); if ( $lastUpdated ) { $data['rulesLastUpdated'] = $lastUpdated; } @@ -2357,17 +2356,17 @@ class MainWP_Child_Wordfence {
getResults() as $title => $tests ) : - $key = sanitize_key( 'wf-diagnostics-' . $title ); - $hasFailingTest = false; - foreach ( $tests['results'] as $result ) { - if ( ! $result['test'] ) { - $hasFailingTest = true; - break; - } + foreach ( $diagnostic->getResults() as $title => $tests ) : + $key = sanitize_key( 'wf-diagnostics-' . $title ); + $hasFailingTest = false; + foreach ( $tests['results'] as $result ) { + if ( ! $result['test'] ) { + $hasFailingTest = true; + break; } + } - if ( $inEmail ) : + if ( $inEmail ) : ?> @@ -2403,7 +2402,7 @@ class MainWP_Child_Wordfence {
-
+
@@ -2897,7 +2896,7 @@ class MainWP_Child_Wordfence { $q = $wfdb->querySelect( 'SHOW TABLE STATUS WHERE Name IN (' . implode( ',', $tables ) . ')' ); if ( $q ) : $databaseCols = count( $q[0] ); - ?> + ?>