@@ 149-152 (lines=4) @@ | ||
146 | */ |
|
147 | protected function validate_condition( $settings ) { |
|
148 | ||
149 | if ( ! isset( $settings['type'] ) ) { |
|
150 | $this->validator->add_error( __( 'Condition type is missing.', 'wordpoints' ) ); |
|
151 | return false; |
|
152 | } |
|
153 | ||
154 | $arg = $this->event_args->get_current(); |
|
155 | ||
@@ 181-184 (lines=4) @@ | ||
178 | return false; |
|
179 | } |
|
180 | ||
181 | if ( ! isset( $settings['settings'] ) ) { |
|
182 | $this->validator->add_error( __( 'Condition settings are missing.', 'wordpoints' ) ); |
|
183 | return false; |
|
184 | } |
|
185 | ||
186 | $this->validator->push_field( 'settings' ); |
|
187 |