PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.1
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 +12 -30 1.6.141.6.1 View file →
@@ -164,25 +164,8 @@
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 -/**
185 168 * Get an entry by id
186 169 *
187 170 * @param int $entry_id
188 171 *
@@ -1099,9 +1082,9 @@
1099 1082 'message' => __( 'Thanks for contacting us! We will get in touch with you shortly.', 'weforms' ),
1100 1083 'page_id' => '',
1101 1084 'url' => '',
1102 1085
1103 - 'submit_text' => __( 'Submit', 'weforms' ),
1086 + 'submit_text' => __( 'Submit Query', 'weforms' ),
1104 1087 'submit_button_cond' => [
1105 1088 'condition_status' => 'no',
1106 1089 'cond_logic' => 'any',
1107 1090 'conditions' => [
@@ -1131,9 +1114,8 @@
1131 1114 'respondent_can_see' => [ 'missed_questions', 'correct_answers', 'point_values' ],
1132 1115 'total_points' => 0,
1133 1116 'enable_multistep' => false,
1134 1117 'multistep_progressbar_type' => 'progressive',
1135 - 'humanpresence_enabled' => false,
1136 1118
1137 1119 // payment
1138 1120 'payment_paypal_images' => 'https://www.paypalobjects.com/webstatic/mktg/logo/AM_mc_vs_dc_ae.jpg',
1139 1121
@@ -1221,25 +1203,25 @@
1221 1203 }
1222 1204
1223 1205 if ( is_array( $value ) ) {
1224 1206 $string_value = [];
1225 - foreach ( $value as $key => $single_value ) {
1226 - if ( is_array( $single_value ) || is_serialized( $single_value ) ) {
1227 - $single_value = weforms_get_pain_text( $single_value );
1207 +
1208 + if ( is_array( $value ) ) {
1209 + foreach ( $value as $key => $single_value ) {
1210 + if ( is_array( $single_value ) || is_serialized( $single_value ) ) {
1211 + $single_value = weforms_get_pain_text( $single_value );
1212 + }
1213 +
1214 + $single_value = ucwords( str_replace( [ '_', '-' ], ' ', $key ) ) . ': ' . ucwords( $single_value );
1215 +
1216 + $string_value[] = $single_value;
1228 1217 }
1229 1218
1230 - $single_value = ucwords( str_replace( [ '_', '-' ], ' ', $key ) ) . ': ' . ucwords( $single_value );
1231 -
1232 - $string_value[] = $single_value;
1219 + $value = implode( WeForms::$field_separator, $string_value );
1233 1220 }
1234 -
1235 - $value = implode( WeForms::$field_separator, $string_value );
1236 1221 }
1237 1222
1238 1223 $value = trim( strip_tags( $value ) );
1239 -
1240 - // escape spreadsheet special characters to prevent formula exploits.
1241 - $value = preg_match( '/^[=+@-]/', $value ) ? '\'' . $value : $value;
1242 1224
1243 1225 return $value;
1244 1226 }
1245 1227