PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.17
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.17
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | includes/functions.php +19 -2 1.6.81.6.17 View file →
@@ -164,8 +164,25 @@
164 164 return $results;
165 165 }
166 166
167 167 /**
168 + * Get payments by a entry_id
169 + *
170 + * @param int $entry_id
171 + *
172 + * @return object
173 + */
174 +function weforms_get_entry_payment( $entry_id ) {
175 + global $wpdb;
176 +
177 + $query = 'SELECT transaction_id FROM ' . $wpdb->prefix . 'weforms_payments' .
178 + ' WHERE entry_id = ' . $entry_id;
179 + $payment = $wpdb->get_row( $query, $entry_id );
180 +
181 + return $payment;
182 +}
183 +
184 +/**
168 185 * Get an entry by id
169 186 *
170 187 * @param int $entry_id
171 188 *
@@ -1082,9 +1099,9 @@
1082 1099 'message' => __( 'Thanks for contacting us! We will get in touch with you shortly.', 'weforms' ),
1083 1100 'page_id' => '',
1084 1101 'url' => '',
1085 1102
1086 - 'submit_text' => __( 'Submit Query', 'weforms' ),
1103 + 'submit_text' => __( 'Submit', 'weforms' ),
1087 1104 'submit_button_cond' => [
1088 1105 'condition_status' => 'no',
1089 1106 'cond_logic' => 'any',
1090 1107 'conditions' => [
@@ -1302,7 +1319,7 @@
1302 1319 function weforms_clean( $var ) {
1303 1320 if ( is_array( $var ) ) {
1304 1321 return array_map( 'weforms_clean', $var );
1305 1322 } else {
1306 - return is_scalar( $var ) ? sanitize_text_field( wp_unslash( $var ) ) : $var;
1323 + return is_scalar( $var ) ? sanitize_textarea_field( wp_unslash( $var ) ) : $var;
1307 1324 }
1308 1325 }