PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/single-form-settings/form-settings-api.php +8 -0 2.10.1 → 2.12.8 View file →
@@ -7,8 +7,9 @@
7 7 */
8 8
9 9 namespace SRFM\Inc\Single_Form_Settings;
10 10
11 +use SRFM\Inc\Compatibility\Multilingual\String_Collector;
11 12 use SRFM\Inc\Helper;
12 13 use SRFM\Inc\Traits\Get_Instance;
13 14 use WP_Error;
14 15 use WP_REST_Request;
@@ -171,8 +172,15 @@
171 172 // Read back the persisted value so the client can re-baseline
172 173 // against whatever sanitize_callbacks returned.
173 174 $saved[ $meta_key ] = get_post_meta( $post_id, $meta_key, true );
174 175 }
176 +
177 + // The settings dialog persists meta via update_post_meta() without firing
178 + // save_post, so String_Collector::on_form_save() never runs for these edits.
179 + // Re-collect explicitly so confirmation / notification / restriction strings
180 + // are (re-)registered with the active multilingual provider. collect() is
181 + // provider-gated and idempotent, and a no-op when no provider is active.
182 + String_Collector::get_instance()->collect( $post_id );
175 183
176 184 return new WP_REST_Response(
177 185 [
178 186 'success' => true,