Refactoring

This commit is contained in:
thanghv 2020-05-20 20:15:29 +07:00
parent a63b447496
commit cb60afea0d
30 changed files with 351 additions and 402 deletions

View file

@ -13,6 +13,8 @@
* Extension URL: https://mainwp.com/extension/ithemes-security/
*/
use MainWP\Child\MainWP_Helper;
// phpcs:disable -- third party credit code.
class MainWP_Child_IThemes_Security {
@ -56,7 +58,7 @@ class MainWP_Child_IThemes_Security {
$information = array();
if ( ! class_exists( 'ITSEC_Core' ) || ! class_exists( 'ITSEC_Modules' ) ) {
$information['error'] = 'NO_ITHEME';
mainwp_child_helper()->write( $information );
MainWP_Helper::write( $information );
}
global $mainwp_itsec_modules_path;
@ -118,7 +120,7 @@ class MainWP_Child_IThemes_Security {
break;
}
}
mainwp_child_helper()->write( $information );
MainWP_Helper::write( $information );
}
public function set_showhide() {