We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe749a1 commit 07f0b24Copy full SHA for 07f0b24
1 file changed
includes/class-ajax.php
@@ -34,11 +34,11 @@ public function wcct_save_settings() {
34
}
35
36
$integration_settings = array();
37
- $post_data = isset( $_POST['settings'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['settings'] ) ) : [];
+ // $post_data = isset( $_POST['settings'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['settings'] ) ) : [];
38
39
- if ( ! empty( $post_data ) ) {
+ if ( ! empty( $_POST['settings'] ) ) {
40
41
- foreach ( $post_data as $field_id => $settings ) {
+ foreach ( $_POST['settings'] as $field_id => $settings ) {
42
$is_enabled = isset( $settings['enabled'] ) ? true : false;
43
44
$settings = array_merge( $settings, array( 'enabled' => $is_enabled ) );
0 commit comments