From 785ecef6396e034591dfd8e03e38c53450463ba2 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Mon, 14 Nov 2016 16:15:53 +0800 Subject: [PATCH] Fix indentation --- core/um-form.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/um-form.php b/core/um-form.php index 303d9b11..d3eed5f9 100644 --- a/core/um-form.php +++ b/core/um-form.php @@ -110,11 +110,7 @@ class UM_Form { $this->post_form = array_merge( $this->form_data, $this->post_form ); - $secure_form_post = apply_filters('um_secure_form_post', true ); - - if( isset( $this->form_data['custom_fields'] ) - && strstr( $this->form_data['custom_fields'], 'role_' ) - && $secure_form_post ){ // Secure selected role + if( isset( $this->form_data['custom_fields'] ) && strstr( $this->form_data['custom_fields'], 'role_' ) ){ // Secure selected role $custom_field_roles = $this->custom_field_roles( $this->form_data['custom_fields'] ); @@ -137,7 +133,6 @@ class UM_Form { $this->post_form['submitted']['role'] = $role; } - if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){ wp_die('Hello, spam bot!'); }