PluginProbe
Booking Calendar / 11.8.4
Booking Calendar v11.8.4
11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 All 204 releases
← All changes | includes/_front_end/class-fe-render-form-body.php +9 -1 11.4.211.8.4 View file →
@@ -570,9 +570,17 @@
570 570 if ( '' === $bfb_form_html ) {
571 571
572 572 $render_args = array_merge( $custom_params, array( 'booking_type' => (int) $resource_id ) );
573 573
574 - $bfb_source = wpbc_lang( $bfb_source );
574 + /*
575 + * Do not pass the complete Builder form through wpbc_lang(). Builder
576 + * labels and option values may contain legacy [lang=LOCALE] markers.
577 + * Parsing one of those inline markers as a whole-form language block
578 + * truncates everything before/after the matching field and can leave an
579 + * incomplete form on the front end. BFB multilingual forms are separate
580 + * custom forms and are selected by their form slug.
581 + */
582 + $bfb_source = (string) $bfb_source;
575 583
576 584 // Replace custom params in the source (legacy behavior).
577 585 if ( ! empty( $custom_params ) ) {
578 586 foreach ( $custom_params as $custom_params_key => $custom_params_value ) {