mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
Refactoring
This commit is contained in:
parent
77bec5dfff
commit
1dcb245e58
24 changed files with 199 additions and 153 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue