Refactoring

This commit is contained in:
thanghv 2020-05-08 16:44:48 +07:00
parent 77bec5dfff
commit 1dcb245e58
24 changed files with 199 additions and 153 deletions

View file

@ -205,7 +205,7 @@ class MainWP_Child_IThemes_Security {
$errors = array();
$nbf_settings = array();
$update_settings = maybe_unserialize( base64_decode( $_POST['settings'] ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions -- base64_encode function is used for benign reasons.
$update_settings = maybe_unserialize( base64_decode( $_POST['settings'] ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions -- base64_encode function is used for begin reasons.
foreach ( $update_settings as $module => $settings ) {
$do_not_save = false;
@ -350,7 +350,7 @@ class MainWP_Child_IThemes_Security {
}
public static function activate_network_brute_force() {
$data = maybe_unserialize( base64_decode( $_POST['data'] ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions -- base64_encode function is used for benign reasons.
$data = maybe_unserialize( base64_decode( $_POST['data'] ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions -- base64_encode function is used for begin reasons.
$information = array();
if ( is_array( $data ) ) {
$settings = ITSEC_Modules::get_settings( 'network-brute-force' );
@ -1129,7 +1129,7 @@ class MainWP_Child_IThemes_Security {
$query = $wpdb->prepare( 'SHOW TABLES LIKE %s', "{$wpdb->base_prefix}%" );
}
$tables = $wpdb->get_results( $query, ARRAY_N );
$tables = $wpdb->get_results( $query, ARRAY_N ); // phpcs:ignore -- safe query.
$excludes = array();
foreach ( $tables as $table ) {