From a6618eab1260033849e0f5f36c97ffdf8b3c44fb Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Tue, 8 Mar 2016 22:50:11 +0800 Subject: [PATCH] Add braces --- core/um-form.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/um-form.php b/core/um-form.php index a875bd7c..c7995900 100644 --- a/core/um-form.php +++ b/core/um-form.php @@ -67,6 +67,7 @@ class UM_Form { $this->form_id = $_POST['form_id']; $this->form_status = get_post_status( $this->form_id ); + if ( $this->form_status == 'publish' ) { @@ -95,8 +96,9 @@ class UM_Form { } } - if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ) + if ( isset( $_POST[ $ultimatemember->honeypot ] ) && $_POST[ $ultimatemember->honeypot ] != '' ){ wp_die('Hello, spam bot!'); + } if ( !in_array( $this->form_data['mode'], array('login') ) ) { @@ -112,7 +114,7 @@ class UM_Form { } /* Continue based on form mode - pre-validation */ - + do_action('um_submit_form_errors_hook', $this->post_form ); do_action("um_submit_form_{$this->post_form['mode']}", $this->post_form );