PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/WorkFlow/Actions.php +14 -1 3.2.13.3.1 View file →
@@ -255,9 +255,15 @@
255 255 // Honor enable/disable: a disabled confirmation message is skipped so the default confirmation applies.
256 256 if (isset($msgConfig->status) && empty($msgConfig->status)) {
257 257 return $workFlowReturnable;
258 258 }
259 - $messageContent = $message[0]->message_content;
259 + // Translate before smart-tag replacement, so lookups hit the stored text.
260 + $messageContent = (string) apply_filters(
261 + 'bitform_translate_form_string',
262 + (string) $message[0]->message_content,
263 + 'msg-content-' . $message[0]->id,
264 + static::$_formID
265 + );
260 266
261 267 // replace pdf link and password
262 268 if (class_exists('\BitCode\BitFormPro\Admin\DownloadFile') && !empty($entryID)) {
263 269 $downloadFile = new \BitCode\BitFormPro\Admin\DownloadFile();
@@ -293,8 +299,15 @@
293 299 return $workFlowReturnable;
294 300 }
295 301 $url = Utilities::jsonObj($redirectPage[0]->integration_details ?? '')->url ?? '';
296 302 if (!empty($url)) {
303 + // Translated before smart-tag replacement: per-language redirect targets.
304 + $url = (string) apply_filters(
305 + 'bitform_translate_form_string',
306 + (string) $url,
307 + 'redirect-url-' . $redirectPage[0]->id,
308 + static::$_formID
309 + );
297 310 $url = Helper::replaceFieldWithValue($url, $fieldValue);
298 311 }
299 312 $workFlowReturnable['redirectPage'] = empty($url) ? false : esc_url_raw($url);
300 313 }