PluginProbe
WANotifier for Forms and Actions / 3.1.1
WANotifier for Forms and Actions v3.1.1
3.1.1 3.1.0 3.0.4 2.7.10 2.7.11 2.7.12 2.7.13 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 3.0.0 3.0.1 3.0.2 3.0.3 trunk 0.1.0 0.1.1 1.0.0 1.0.1 1.0.2 All 67 releases
← All changes | includes/classes/integrations/class-notifier-wsform.php +2 -2 3.0.13.1.1 View file →
@@ -21,9 +21,9 @@
21 21 return $existing_triggers;
22 22 }
23 23
24 24 $ws_form = new WS_Form_Form();
25 - $forms = $ws_form->db_read_all( '', 'NOT status="trash"', 'label ASC', '', '', false, true );
25 + $forms = $ws_form->db_read_all( '', "NOT status='trash'", 'label ASC', '', '', false, true );
26 26
27 27 if ( empty( $forms ) || ! is_array( $forms ) ) {
28 28 return $existing_triggers;
29 29 }
@@ -119,9 +119,9 @@
119 119 return $merge_tags;
120 120 }
121 121
122 122 $form_id = (int) $form['id'];
123 - $excluded_types = array( 'html', 'section', 'captcha', 'page', 'header', 'spacer' );
123 + $excluded_types = array( 'html', 'section', 'captcha', 'page', 'header', 'spacer', 'submit' );
124 124
125 125 foreach ( $fields as $field ) {
126 126
127 127 if ( empty( $field->id ) || in_array( $field->type, $excluded_types, true ) ) {